Downloads · 30 days
11
7% of all-time downloads
eoinedge/edgeai-qwen2.5coder-1.5b-lora
edgeai-qwen2.5coder-1.5b-lora is a text generation model from eoinedge. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
A LoRA adapter trained on Edge Impulse and Edge AI documentation for Qwen/Qwen2.5-Coder-1.5B-Instruct.
Downloads · 30 days
11
7% of all-time downloads
All-time downloads
148
Public
Repo size
81.4 MB
Likes
0
Public
Click a slice to open those files.
.safetensors52.4 MB · 43%
From the Hugging Face model README
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.
Qwen/Qwen2.5-Coder-1.5B-Instructadapter-edgeai-1.5b-fulladapter-edgeai-1.5b-fullsafetensors1700 and 17647.306.1216.3%5.20 for both base and adapterfrom 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))
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.csvPeftModel.from_pretrained with the base model and this adapter repo.