Downloads · 30 days
8
12% of all-time downloads
blackhole33/GoogleGemma
GoogleGemma is a machine learning model from blackhole33. 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 peft. The card lists the license as other.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
8
12% of all-time downloads
All-time downloads
69
Public
Repo size
122 MB
Likes
0
Public
Click a slice to open those files.
.safetensors100 MB · 82%
From the Hugging Face model README
GOOGLEGEMMA modelini UZB datasetga fine-tuned qilindi PEFT bilan. natijasi yaxshi deyishish qiyin. Shuning uchun PEFT siz qilishni tafsiya qilaman .
Agarda siz PEFT bilan fine-tuned qilingan modellarni ishlatishni bilmasangiz, exmaple codega qarang
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, AutoTokenizer
model_name = "google/gemma-7b"
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.float16,
)
model = AutoModelForCausalLM.from_pretrained(
model_name,
quantization_config=bnb_config,
trust_remote_code=True
)
model.config.use_cache = False
##### yuqoridagi code hamma PEFT bilan qilingan modellarni reduced par qilish orqali free GPU Notebooklarda foydalanish imkoni beradi.
from peft import PeftModel, PeftConfig
from transformers import AutoModelForCausalLM,AutoTokenizer
config = PeftConfig.from_pretrained("ai-nightcoder/outputs")
tokenizer = AutoTokenizer.from_pretrained('ai-nightcoder/outputs')
inputs = tokenizer("Xorijiy mamlakatlar", return_tensors="pt")
outputs = model(**inputs, labels=inputs["input_ids"])
predicted_token_class_ids = outputs.logits.argmax(-1)
generated_text = tokenizer.batch_decode(predicted_token_class_ids, skip_special_tokens=True)
print(generated_text)
More information needed
More information needed
The following hyperparameters were used during training: