How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="dispatchAI/SmolLM2-1.7B-Instruct-Q5-mobile",
	filename="model.gguf",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

SmolLM2-1.7B-Instruct-Q5-mobile

โœ… WORKS โ€” Verified June 2026.

Verification Results

Prompt Response Correct?
What is the capital of France? "The capital of France is Paris." โœ…
Say hello in one sentence. "Hello, I'm here to help with any programming tasks you may n" โœ…

Model Details

Attribute Value
Base Model HuggingFaceTB/SmolLM2-1.7B-Instruct
File Size 1169 MB
Format GGUF
Chat Format chatml
CPU Speed 10.8 tokens/sec
License apache-2.0

Usage

from llama_cpp import Llama

llm = Llama(model_path="model.gguf", chat_format="chatml", n_ctx=512, n_threads=4, verbose=False)
response = llm.create_chat_completion(
    messages=[{"role": "user", "content": "What is the capital of France?"}],
    max_tokens=50,
)
print(response["choices"][0]["message"]["content"])

dispatchAI SDK

from dispatchai import load_model
model = load_model("SmolLM2-1.7B-Instruct-Q5-mobile", backend="gguf")
print(model.chat("Hello!"))

๐Ÿš€ dispatchAI

Downloads last month
37
GGUF
Model size
2B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including dispatchAI/SmolLM2-1.7B-Instruct-Q5-mobile