SmolLM 360M v0.2

HuggingFace

llama

A HuggingFace original model, SmolLM lives up to its name in size and will fit on just about any device. Slightly larger option at 1.7B parameters is also available.

Model info

Model

SmolLM 360M v0.2

Author

HuggingFace

Arch

llama

Parameters

360M

Size on disk

about 386.41 MB

Format

gguf

Download and run SmolLM 360M v0.2

Open in LM Studio to view download options

Use SmolLM 360M v0.2 in your code

💡 LM Studio needs to be installed and run at least once for this to work. Don't have it yet? Get it here.

CLI Bootstrap

npx lmstudio install-cli # (only needed once)

Model Load

lms load huggingfacetb/smollm-360m-instruct-v0.2-q8_0-gguf
Alternatively, load the model in the LM Studio app.

Use SmolLM 360M v0.2 via an OpenAI-like API

Reuse your existing OpenAI client code and point it to LM Studio instead.

Python example
# Example: reuse your existing OpenAI client code
from openai import OpenAI

# Point to the local server
client = OpenAI(base_url="http://localhost:1234/v1", 
                api_key="lm-studio") # not used

completion = client.chat.completions.create(
  model="huggingfacetb/smollm-360m-instruct-v0.2-q8_0-gguf",
  messages=[
    {"role": "system", "content": "Always answer in rhymes."},
    {"role": "user", "content": "Introduce yourself."}
  ],
  temperature=0.7,
)

print(completion.choices[0].message)

Develop

Learn more