Downloads · 30 days
28
4% of all-time downloads
fchis/Laravel-13x-Qwen2.5-Coder-3B-Instruct-LoRA
Laravel-13x-Qwen2.5-Coder-3B-Instruct-LoRA is a text generation model from fchis. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
A code-specialized Qwen2.5-Coder-3B model fine-tuned on Laravel 13.x instruction-to-code pairs. Generates production-ready Laravel PHP code from natural language instructions.
Downloads · 30 days
28
4% of all-time downloads
All-time downloads
635
Public
Parameters
3.1B
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.7 GB · 99%
How the weights are stored.
U323.1B · 100%
From the Hugging Face model README
A code-specialized Qwen2.5-Coder-3B model fine-tuned on Laravel 13.x instruction-to-code pairs. Generates production-ready Laravel PHP code from natural language instructions.
Designed to work with fchis/Laravel-13x-Planner-Qwen3-1.7B-LoRA as a two-model pipeline, or standalone with specific instructions.
When given specific, single-file instructions, this model produces near-perfect code:
| Instruction | Output quality | PHP valid |
|---|---|---|
| "Create model for Contact with fillable: name, email, subject, message" | Perfect — exact 4 fields, no extras | Yes |
| "Write migration to create contacts table with name, email, subject, message" | Perfect — full class wrapper, correct types | Yes |
| "Create Form Request with validation: name, email, subject, message" | Perfect — correct rules | Yes |
| "Write ContactController with store using StoreContactRequest, return 201" | Near-perfect — correct FormRequest injection | Yes |
When instructions are vague, quality drops. The model works best as the second stage of a planner→coder pipeline where the planner provides specific instructions.
After testing on real Laravel projects:
<?php (post-processing strips this)| Detail | Value |
|---|---|
| Base model | Qwen2.5-Coder-3B-Instruct (4-bit via MLX) |
| Fine-tuning | LoRA, 16 layers, mask-prompt |
| Training data | 139 instruction-to-code pairs (v5) |
| Training time | ~5 minutes on Apple M2 Pro 16GB |
| Peak memory | 5.8 GB |
| Best val loss | 0.344 (iter 200) |
from mlx_lm import load, generate
model, tok = load("fchis/Laravel-13x-Qwen2.5-Coder-3B-Instruct-LoRA")
messages = [
{"role": "system", "content": "You are a senior Laravel developer. Write clean, production-ready Laravel code."},
{"role": "user", "content": "Create a Laravel Eloquent model for Contact with fillable fields: name, email, subject, message."}
]
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
response = generate(model, tok, prompt=text, max_tokens=500)
print(response)
<?php, detect repetition loops| Model | Role | Link |
|---|---|---|
| Planner | Decompose features into instructions | fchis/Laravel-13x-Planner-Qwen3-1.7B-LoRA |
| This model | Generate code per instruction | You're here |
| CLI tool | End-to-end pipeline | github.com/florinel-chis/laravel-ai-code-generator |