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="smaluk/maluk-whatsapp",
	filename="ggml-model-f16.gguf",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

smaluk/maluk-whatsapp

The Model smaluk/maluk-whatsapp was converted to MLX format from mlx-community/Llama-3.2-3B-Instruct-4bit using mlx-lm version 0.20.1.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("smaluk/maluk-whatsapp")

prompt="hello"

if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, tokenize=False, add_generation_prompt=True
    )

response = generate(model, tokenizer, prompt=prompt, verbose=True)
Downloads last month
25
Safetensors
Model size
0.5B params
Tensor type
F16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for smaluk/maluk-whatsapp