Downloads · 30 days
0
lucky2me/Dorami-Chat-LoRA
Dorami-Chat-LoRA is a machine learning model from lucky2me. 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.
Dorami-Chat-LoRA is a Low-Rank Adaptation(LoRA) model based on the model lucky2me/Dorami-Chat
Downloads · 30 days
0
Access
Public
Updated Apr 14, 2025
Repo size
65.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors65.6 MB · 99%
From the Hugging Face model README
Dorami-Chat-LoRA is a Low-Rank Adaptation(LoRA) model based on the model lucky2me/Dorami-Chat
git lfs install
git clone https://huggingface.co/lucky2me/Dorami-Chat-LoRA
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
model_path = "The path of the model downloaded above"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path)
prompt="fill in any prompt you like."
inputs = tokenizer(prompt, return_tensors="pt")
generation_config = GenerationConfig(max_new_tokens=64, do_sample=True, top_k=2, eos_token_id=model.config.eos_token_id)
outputs = model.generate(**inputs, generation_config=generation_config)
decoded_text = tokenizer.batch_decode(outputs, skip_special_tokens=True)
print(decoded_text)