Downloads · 30 days
0
NotIshaan/ernie-arduino-qa-unsloth-v2
ernie-arduino-qa-unsloth-v2 is a machine learning model from NotIshaan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is an ERNIE model fine-tuned on Arduino documentation using Unsloth for the AI Challenge. The model is specifically optimized to answer questions about Arduino programming, libraries, hardware, and best practices.
Downloads · 30 days
0
Access
Public
Updated Dec 27, 2025
Repo size
70 MB
Likes
1
Public
Click a slice to open those files.
.safetensors24.2 MB · 45%
From the Hugging Face model README
This is an ERNIE model fine-tuned on Arduino documentation using Unsloth for the AI Challenge. The model is specifically optimized to answer questions about Arduino programming, libraries, hardware, and best practices.
from unsloth import FastLanguageModel
# Load model
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="NotIshaan/ernie-arduino-qa-unsloth-v2",
max_seq_length=1024,
dtype=None,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
# Generate response
instruction = "What is Arduino?"
prompt = f'''Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{instruction}
### Response:
'''
inputs = tokenizer([prompt], return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7)
response = tokenizer.batch_decode(outputs)[0]
print(response)
Question: "How do I use digitalWrite in Arduino?"
Answer: The model provides detailed explanations of Arduino functions, syntax, and best practices.
If you use this model, please cite:
@misc{ernie-arduino-qa,
author = {Ishaan Pandey},
title = {ERNIE Arduino Q&A Model},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/NotIshaan/ernie-arduino-qa-unsloth-v2}
}