Downloads · 30 days
6
12% of all-time downloads
VijayShinde1996/vrs-gemma-2b-it
vrs-gemma-2b-it is a text generation model from VijayShinde1996. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
<center<img src="https://assets-global.website-files.com/59e16042ec229e00016d3a66/6441d5f76d21e1e4dee9ffa2Gen%20AI%20blogBlog%20hero-p-1080.png" width="1000"</center
Downloads · 30 days
6
12% of all-time downloads
All-time downloads
50
Public
Parameters
2.5B
5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5 GB · 100%
From the Hugging Face model README
This is a vrs-gemma-2b-it model fine-tuned using LoRA (16-bit precision)
It was trained on a Google Colab notebook with a T4 GPU and high RAM.
# Running the model on a GPU using different precisions:- For Float16 -
#!pip install -U transformers
#!pip install "torch>=2.1.1" -U
#!pip install accelerate
#!huggingface-cli login
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
tokenizer = AutoTokenizer.from_pretrained("VijayShinde1996/vrs-gemma-2b-it")
model = AutoModelForCausalLM.from_pretrained("VijayShinde1996/vrs-gemma-2b-it", device_map="auto", torch_dtype=torch.float16)
input_text = "Write me a poem about Machine Learning."
input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
outputs = model.generate(**input_ids, max_length=500)
print(tokenizer.decode(outputs[0]))