Instructions to use YoAbriel/KodaLite-1.3B-mlx-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use YoAbriel/KodaLite-1.3B-mlx-8bit 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-8bit") 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-8bit 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-8bit"
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-8bit" # 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-8bit", "messages": [ {"role": "user", "content": "Hello"} ] }'
KodaLite-1.3B โ MLX 8-bit
8-bit MLX quantization of YoAbriel/KodaLite-1.3B, optimized for Apple Silicon.
Size: ~1.4 GB | Precision: 8-bit (8.5 bpw)
Usage
pip install mlx-lm
from mlx_lm import load, generate
model, tok = load("YoAbriel/KodaLite-1.3B-mlx-8bit")
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))
Related
- YoAbriel/KodaLite-1.3B-mlx โ Full precision fp16 (~2.5 GB)
Note: 4-bit quantization of this model produces degraded output because the SFT signal is weak at 1.27B params with only 1.64B training tokens. 8-bit works fine.
License
Apache 2.0
- Downloads last month
- 23
Model size
0.4B params
Tensor type
BF16
ยท
U32 ยท
Hardware compatibility
Log In to add your hardware
8-bit
Model tree for YoAbriel/KodaLite-1.3B-mlx-8bit
Base model
YoAbriel/KodaLite-1.3B