In This Version
In This Version |
---|
What's New
-
0.5
: Support for Notebooks -
0.4
: Minor fixes -
1.1
: Download updates -
1.2
: Added CLI
List all LLMs available for use. Selected for you.
import getllms
models = getllms.list_models()
Output
[
Model(
name="Google's Gemma 2B Instruct",
description='** Requires LM Studio 0.2.15 or new…',
files=[ …(1) ]
),
Model(
name='Mistral 7B Instruct v0.2',
description='The Mistral-7B-Instruct-v0.2 Large …',
files=[ …(2) ]
),
...
]
Get the trained ones for a specific model. Select the one that meets your system requirements.
# select Google's Gemma 2B Instruct
model = models[0]
model.files
Output & More
Output
FileCollection(
best=ModelFile(
name='gemma-2b-it-q8_0.gguf',
size=2669351840,
url='https://huggingface.co/lmstudi…'
),
+0
)
More
Additionally, you can see all the available model files:
model.files.all # [ ModelFile(...), ... ]
Download the LLM that's right for you.
model.download("model.bin")
Output
0.0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 900.0KB / 2.5GB (8.7MB/s)
To list all models, use the getllms list
command. Note that this truncates down to showing only 5 models. If you wish to list all of them, use getllms list all
instead.
$ getllms list
Output
Google's Gemma 2B Instruct
** Requires LM Studio 0.2.15 or newer ** Gemma is a family of lightweight LLMs built from the same research and technology Google used to create the Gemini models. Gemma models are available in two sizes, 2 billion and 7 billion parameters. These models are trained on up to 6T tokens of primarily English web documents, mathematics, and code, using a transformer architecture with enhancements like Multi-Query Attention, RoPE Embeddings, GeGLU Activations, and advanced normalization techniques.
Mistral 7B Instruct v0.2
The Mistral-7B-Instruct-v0.2 Large Language Model (LLM) is an improved instruct fine-tuned version of Mistral-7B-Instruct-v0.1. For full details of this model read MistralAI's blog post and paper.
(...)
To download a model, use getllms <model name>
:
$ getllms "Google's Gemma 2B Instruct"
Specify model size
If you wish to specify the model's size (economical/best), just add the desired size inside of square brackets after the name of the model.
$ getllms "Google's Gemma 2B Instruct [economical]"
© 2023 AWeirdDev. Catalog by LMStudio