Downloads · 30 days
0
Ashishkr/Gemma-7B-COT-LoRA-1024R
Gemma-7B-COT-LoRA-1024R is a machine learning model from Ashishkr. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Author: Ashish Kumar, Head of Platforms, AI & Data at Tata Group · ashishkumar.ai · Wikidata
Downloads · 30 days
0
Access
Public
Updated Oct 17, 2026
Repo size
12.8 GB
Likes
0
Public
Click a slice to open those files.
.safetensors12.8 GB · 100%
From the Hugging Face model README
Author: Ashish Kumar, Head of Platforms, AI & Data at Tata Group · ashishkumar.ai · Wikidata
from unsloth import FastLanguageModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "Ashishkr/Gemma-7B-COT-LoRA-1024R",
max_seq_length = max_seq_length,
dtype = dtype,
load_in_4bit = load_in_4bit,
)
FastLanguageModel.for_inference(model)
inputs = tokenizer(
[
alpaca_prompt.format(
"given a number identify if it is an even number, if its even, square it and add 5 to it. if its odd , get me the square root of the number", # instruction
"12", # input
"", # output - leave this blank for generation!
)
], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 2048, use_cache = True)
tokenizer.batch_decode(outputs)