iamtarun/python_code_instructions_18k_alpaca
Viewer β’ Updated β’ 18.6k β’ 15.4k β’ 340
How to use ArmandS11/DeepSeekR1-7B-FineTuned-python with MLX:
# Make sure mlx-lm is installed
# pip install --upgrade mlx-lm
# if on a CUDA device, also pip install mlx[cuda]
# Generate text with mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("ArmandS11/DeepSeekR1-7B-FineTuned-python")
prompt = "Once upon a time in"
text = generate(model, tokenizer, prompt=prompt, verbose=True)How to use ArmandS11/DeepSeekR1-7B-FineTuned-python with MLX LM:
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "ArmandS11/DeepSeekR1-7B-FineTuned-python" --prompt "Once upon a time"
A LoRA fine-tuned version of DeepSeek-R1-Distill-Qwen-7B specialized for Python code generation.
Generate Python code from natural language instructions. Examples:
Generated code should always be reviewed before use in production. The model may occasionally produce syntactically incorrect code, particularly for complex async patterns.
iamtarun/python_code_instructions_18k_alpaca β 18,612 Python code instruction/response pairs.
| Parameter | Value |
|---|---|
| Method | LoRA |
| LoRA Rank | 8 |
| LoRA Layers | 8 |
| Learning Rate | 5e-6 |
| Batch Size | 2 |
| Iterations | 2000 |
| Quantization | 4-bit |
Armand β @ArmandS11
Base model
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B