Downloads · 30 days
6
24% of all-time downloads
cocaho/outputs
outputs is a text generation model from cocaho. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as gemma.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
6
24% of all-time downloads
All-time downloads
25
Public
Repo size
122 MB
Likes
1
Public
Click a slice to open those files.
.safetensors100 MB · 82%
From the Hugging Face model README
This model is a fine-tuned version of google/gemma-7b on the None dataset.
Trained by Sociology Text
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig, GemmaTokenizer
# download the file or use the HF_Token to get the model
model_id = file
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16
)
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, quantization_config=bnb_config, device_map={"":0})
text = "sociological imagination is "
device = "cuda:0"
inputs = tokenizer(text, return_tensors="pt").to(device)
outputs = model.generate(**inputs, max_new_tokens=60)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# Output: sociological imagination is <strong>the ability to see the relationship between personal troubles and public issues
More information needed
More information needed
The following hyperparameters were used during training: