Downloads · 30 days
13
6% of all-time downloads
glides/gemma-pro
gemma-pro is a text generation model from glides. Use it when you need the model to write or continue text. The card lists the license as mit.
Pro is a language model fine-tuned on the Profession dataset using Supervised Fine-Tuning (SFT) and Teacher Reinforced Learning (TRL) techniques.
Downloads · 30 days
13
6% of all-time downloads
All-time downloads
212
Public
Parameters
9.2B
35.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors35.1 GB · 100%
How the weights are stored.
F328.3B · 90%
From the Hugging Face model README
Pro is a language model fine-tuned on the Profession dataset using Supervised Fine-Tuning (SFT) and Teacher Reinforced Learning (TRL) techniques.
To use the LLM, you can load the model using the Hugging Face Transformers library:
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
import torch
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_use_double_quant=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16
)
model_id = "nroggendorff/gemma-pro"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, quantization_config=bnb_config)
prompt = "[INST] Write a poem about tomatoes in the style of Poe.[/INST]"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs)
generated_text = tokenizer.batch_decode(outputs)[0]
print(generated_text)
This project is licensed under the MIT License.