Views
No views yet
Qwen/Qwen2.5-Coder-0.5B-Instruct on a combined Arduino + Edge AI corpus to provide a single offline-capable model for both Arduino documentation guidance and Edge AI tooling knowledge.Qwen/Qwen2.5-Coder-0.5B-Instructsubset/subset_arduino + subset/subset_edgeaipefttext-generationadapter-combined-subset-0.5beval_combined_0.5b_results.csvsubset/subset_edgeai (121 docs)ppl_combined_0.5b_subset_edgeai_results.csv1from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
2from peft import PeftModel
3
4base = "Qwen/Qwen2.5-Coder-0.5B-Instruct"
5tokenizer = AutoTokenizer.from_pretrained(base)
6model = AutoModelForCausalLM.from_pretrained(base)
7model = PeftModel.from_pretrained(model, "eoinedge/arduino-edgeai-qwen-combined-0.5b-lora")
8model = model.merge_and_unload()
9pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, device="cpu")
10print(pipe("How do I read a DHT11 sensor in Arduino?", max_new_tokens=200)[0]["generated_text"])