Downloads · 30 days
0
INo0121/qwen2.5_3b_instruction_tuning_241020
qwen2.5_3b_instruction_tuning_241020 is a machine learning model from INo0121. 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 mit.
This model is a Instruction-tuned version of Qwen 2.5 3B for recipie recommandation.
Downloads · 30 days
0
Access
Public
Updated Oct 21, 2024
Repo size
26.2 MB
Likes
0
Public
Click a slice to open those files.
.safetensors14.8 MB · 48%
From the Hugging Face model README
This model is a Instruction-tuned version of Qwen 2.5 3B for recipie recommandation.
from transformers import AutoTokenizer, AutoModelForCausalLM
base_model_path = "Qwen/Qwen2.5-3B"
adapter_model = "INo0121/qwen2.5_3b_instruction_tuning_241020"
base_model = AutoModelForCausalLM.from_pretrained(
base_model_path,
torch_dtype="auto",
device_map="auto",
temperature=0.1
)
model = PeftModel.from_pretrained(base_model, adapter_model)
tokenizer = AutoTokenizer.from_pretrained(adapter_model)
# Example usage
input_text = "Your input text here"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
[Describe any known limitations or biases of your model]