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.
1from mlx_lm import load, generate
2
3model, tok = load("fchis/Laravel-13x-Qwen2.5-Coder-3B-Instruct-LoRA")
4
5messages = [
6 {"role": "system", "content": "You are a senior Laravel developer. Write clean, production-ready Laravel code."},
7 {"role": "user", "content": "Create a Laravel Eloquent model for Contact with fillable fields: name, email, subject, message."}
8]
9text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
10response = generate(model, tok, prompt=text, max_tokens=500)
11print(response)