Downloads · 30 days
0
Ellight/gemma-2b-bnb-4bit
gemma-2b-bnb-4bit is a text generation model from Ellight. 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.
- Developed by: Ellight - License: apache-2.0 - Finetuned from model : unsloth/gemma-7b-bnb-4bit
Downloads · 30 days
0
Access
Public
Updated May 7, 2024
Repo size
100 MB
Likes
0
Public
Click a slice to open those files.
.safetensors78.5 MB · 78%
From the Hugging Face model README
This gemma model was trained 2x faster with Unsloth and Huggingface's TRL library.
Hindi-Gemma-2B-instruct is an instruction-tuned Hindi large language model (LLM) with 2 billion parameters, and it is based on Gemma 2B.
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "Ellight/gemma-2b-bnb-4bit", # YOUR MODEL YOU USED FOR TRAINING
max_seq_length = max_seq_length,
dtype = dtype,
load_in_4bit = load_in_4bit,
)
FastLanguageModel.for_inference(model) # Enable native 2x faster inference
prompt = """
{}
{}"""
inputs = tokenizer( [ prompt.format( "शतरंज बोर्ड पर कितने वर्ग होते हैं?", # instruction "", # output - leave this blank for generation! )
], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 64, use_cache = True)
tokenizer.batch_decode(outputs)