Downloads · 30 days
11
8% of all-time downloads
NXPKEN/qwen25-1.5b-imx93-lora
qwen25-1.5b-imx93-lora is a text generation model from NXPKEN. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
基于 Qwen2.5-1.5B-Instruct 微调的 i.MX93 SoC 技术文档专用模型。擅长回答寄存器配置、引脚复用、时钟设置等技术问题。
Downloads · 30 days
11
8% of all-time downloads
All-time downloads
130
Public
Parameters
1.5B
3.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors3.1 GB · 99%
From the Hugging Face model README
基于 Qwen2.5-1.5B-Instruct 微调的 i.MX93 SoC 技术文档专用模型。擅长回答寄存器配置、引脚复用、时钟设置等技术问题。
Fine-tuned Qwen2.5-1.5B-Instruct model specialized for NXP i.MX93 SoC technical documentation. Expert in register configuration, pin multiplexing, clock settings, and technical Q&A.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
tokenizer = AutoTokenizer.from_pretrained("NXPKEN/qwen25-1.5b-imx93-lora")
model = AutoModelForCausalLM.from_pretrained("NXPKEN/qwen25-1.5b-imx93-lora", torch_dtype=torch.float16, device_map="auto")
messages = [{"role": "system", "content": "You are an i.MX93 SoC expert."}, {"role": "user", "content": "如何配置 LPUART3?"}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.2)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Apache 2.0