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="madroid/Qwen1.5-0.5B",
	filename="qwen1.5-0.5B-q4_0.gguf",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

madroid/Qwen1.5-0.5B

This model was converted to MLX format from Qwen/Qwen1.5-0.5B-Chat. Refer to the original model card for more details on the model.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("madroid/Qwen1.5-0.5B")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Downloads last month
115
Safetensors
Model size
0.6B params
Tensor type
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
Input a message to start chatting with madroid/Qwen1.5-0.5B.