ドキュメント
モデル情報
モデル情報を取得
モデルに関する情報を取得する
ロードされたモデルインスタンスから、モデル自体の一般的な情報とメタデータにアクセスできます。
以下の例では、LLM参照を、他の変更なしに埋め込みモデル参照に置き換えることができます。
import lmstudio as lms
model = lms.llm()
print(model.get_info())
LlmInstanceInfo.from_dict({ "architecture": "qwen2", "contextLength": 4096, "displayName": "Qwen2.5 7B Instruct 1M", "format": "gguf", "identifier": "qwen2.5-7b-instruct", "instanceReference": "lpFZPBQjhSZPrFevGyY6Leq8", "maxContextLength": 1010000, "modelKey": "qwen2.5-7b-instruct-1m", "paramsString": "7B", "path": "lmstudio-community/Qwen2.5-7B-Instruct-1M-GGUF/Qwen2.5-7B-Instruct-1M-Q4_K_M.gguf", "sizeBytes": 4683073888, "trainedForToolUse": true, "type": "llm", "vision": false })
このページのソースは GitHub で入手できます。