Text Generation
PEFT
Safetensors
English
lora
qwen
qwen2.5
edge-ai
edge-impulse
documentation
code-generation
conversational
Instructions to use eoinedge/edgeai-qwen2.5coder-1.5b-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use eoinedge/edgeai-qwen2.5coder-1.5b-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "eoinedge/edgeai-qwen2.5coder-1.5b-lora") - Notebooks
- Google Colab
- Kaggle
edgeai-qwen2.5coder-1.5b-lora
A LoRA adapter trained on Edge Impulse and Edge AI documentation for Qwen/Qwen2.5-Coder-1.5B-Instruct.
This adapter is designed to improve the base model's performance on Edge AI documentation, developer Q&A, and code-oriented guidance.
Summary
- Model type: PEFT LoRA adapter
- Base model:
Qwen/Qwen2.5-Coder-1.5B-Instruct - Adapter path:
adapter-edgeai-1.5b-full - Target use case: Edge Impulse documentation, Edge AI developer support, and deployment/helpdesk-style answers
Training
- Trained on curated Edge AI and Edge Impulse documentation.
- Output adapter directory:
adapter-edgeai-1.5b-full - Adapter format:
safetensors - Training checkpoints saved at steps
1700and1764
Evaluation
- Perplexity on Edge AI subset:
- base model:
7.30 - adapter:
6.12 - relative improvement:
16.3%
- base model:
- QA coverage on Edge AI question set:
- average keyword match:
5.20for both base and adapter
- average keyword match:
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model = 'Qwen/Qwen2.5-Coder-1.5B-Instruct'
tokenizer = AutoTokenizer.from_pretrained(base_model, trust_remote_code=True)
base = AutoModelForCausalLM.from_pretrained(base_model, trust_remote_code=True)
adapter = PeftModel.from_pretrained(base, 'eoinedge/edgeai-qwen2.5coder-1.5b-lora')
# generate with the adapter
prompt = 'Explain how Edge Impulse can deploy a model to Arduino.'
input_ids = tokenizer(prompt, return_tensors='pt').input_ids
output = adapter.generate(input_ids, max_new_tokens=150)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Files included
adapter-edgeai-1.5b-full/adapter_model.safetensorsadapter-edgeai-1.5b-full/adapter_config.jsonadapter-edgeai-1.5b-full/tokenizer.jsonadapter-edgeai-1.5b-full/tokenizer_config.jsonadapter-edgeai-1.5b-full/chat_template.jinjaeval_edgeai_1.5b_full_edgeai_questions_results.csvppl_edgeai_1.5b_full_subset_results.csv
Notes
- If you want to load the adapter locally, use
PeftModel.from_pretrainedwith the base model and this adapter repo. - The card will be updated with more detailed dataset provenance and fine-tuning configuration once available.
- Downloads last month
- 89
Model tree for eoinedge/edgeai-qwen2.5coder-1.5b-lora
Base model
Qwen/Qwen2.5-1.5B Finetuned
Qwen/Qwen2.5-Coder-1.5B Finetuned
Qwen/Qwen2.5-Coder-1.5B-Instruct