Instructions to use YoAbriel/KodaLite-1.3B-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use YoAbriel/KodaLite-1.3B-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("YoAbriel/KodaLite-1.3B-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
- MLX LM
How to use YoAbriel/KodaLite-1.3B-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "YoAbriel/KodaLite-1.3B-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "YoAbriel/KodaLite-1.3B-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "YoAbriel/KodaLite-1.3B-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }'
KodaLite-1.3B โ MLX (fp16)
MLX version of YoAbriel/KodaLite-1.3B, optimized for Apple Silicon (M1/M2/M3/M4).
Size: ~2.5 GB | Precision: bfloat16
Usage
pip install mlx-lm
from mlx_lm import load, generate
model, tok = load("YoAbriel/KodaLite-1.3B-mlx")
prompt = tok.apply_chat_template(
[{"role": "user", "content": "What is the capital of France?"}],
tokenize=False,
add_generation_prompt=True,
)
print(generate(model, tok, prompt=prompt, max_tokens=80))
Or from the command line:
mlx_lm.generate --model YoAbriel/KodaLite-1.3B-mlx \
--prompt "<|user|>\nHello\n<|assistant|>\n" --max-tokens 80
Other quantizations
- YoAbriel/KodaLite-1.3B-mlx-8bit โ 1.4 GB, 8-bit
Limitations
Small model (1.27B params), undertrained (1.64B tokens). See the base model card for full details.
License
Apache 2.0
- Downloads last month
- 125
Model size
1B params
Tensor type
F16
ยท
Hardware compatibility
Log In to add your hardware
Quantized
Model tree for YoAbriel/KodaLite-1.3B-mlx
Base model
YoAbriel/KodaLite-1.3B