LIGHT AI
Built with Qwen. Improved using Qwen.
LIGHT AI is a fine-tuned version of Qwen2.5-Coder-3B-Instruct, created by Alibaba Cloud. It was fine-tuned by LIGHT (a software and programs developer, Telegram: @X_I8_6). LIGHT is the fine-tuner of this model, not the creator of the Qwen base model.
Modification notice
The weights of the original Qwen2.5-Coder-3B-Instruct were modified by a LoRA fine-tune (merged into the weights) to:
- give the model its own identity (name: LIGHT AI) without needing a system prompt,
- improve coding style, design and error handling, and creative writing, using a small custom dataset plus public code and writing datasets.
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("kaninielmolahen/LIGHT-AI-3B")
model = AutoModelForCausalLM.from_pretrained("kaninielmolahen/LIGHT-AI-3B", torch_dtype="auto", device_map="auto")
msgs = [{"role": "user", "content": "Who are you?"}]
x = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt", return_dict=True).to(model.device)
print(tok.decode(model.generate(**x, max_new_tokens=100)[0][x["input_ids"].shape[1]:], skip_special_tokens=True))
License and non-commercial use
This model is a derivative of Qwen and is distributed under the Qwen RESEARCH LICENSE AGREEMENT (see LICENSE). Use is for non-commercial purposes only (research or evaluation). For commercial use you must request a license from Alibaba Cloud. See NOTICE for the required attribution.
Limitations
A 3B model can make mistakes. Check generated code before running it. The model keeps the base model's safety behavior.