Downloads · 30 days
57
1% of all-time downloads
yys/gemma-7B-it-firefly
gemma-7B-it-firefly is a text generation model from yys. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
gemma-7B-it-firefly is trained based on gemma-7b-it to act as a helpful and harmless AI assistant. we trained the model on firefly-train-1.1M dataset using LoRA.
Downloads · 30 days
57
1% of all-time downloads
All-time downloads
7.6K
Public
Parameters
8.5B
17.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors17.1 GB · 100%
From the Hugging Face model README
gemma-7B-it-firefly is trained based on gemma-7b-it to act as a helpful and harmless AI assistant. we trained the model on firefly-train-1.1M dataset using LoRA.
<img src="gemma-7B-it-firefly.jpg" width="250">we evaluate the model on Open LLM Leaderboard
The chat template of our chat models is same as Official gemma-7b-it:
<bos><start_of_turn>user
Write a hello world program<end_of_turn>
<start_of_turn>model
You can also use the following code:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name_or_path = "yys/gemma-7B-it-firefly"
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
model = AutoModelForCausalLM.from_pretrained(model_name_or_path)
input_text = "给我写一首关于机器学习的诗歌。"
input_ids = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**input_ids)
print(tokenizer.decode(outputs[0]))