1p46G-gemma-fp-dedup-rehydr-ar-350BT-seed-6/transformers/134000

Tokenizer: google/gemma-7b

from transformers import AutoTokenizer, AutoModelForCausalLM
# Initialize model and tokenizer
TEST_PROMPT = "ุงู„ุฒุฑุงุฏุดุชูŠุฉ ู‡ูŠ ุฏูŠุงู†ุฉ ุงู†ุชุดุฑุช ููŠ ุจู„ุงุฏ"
save_path = "nouamanetazi/hf-ar-134000"
tokenizer = AutoTokenizer.from_pretrained(save_path)
input_ids = tokenizer(TEST_PROMPT, return_tensors="pt")["input_ids"].cuda() # google/gemma-7b
print("Input prompt:", tokenizer.batch_decode(input_ids)[0])

model = AutoModelForCausalLM.from_pretrained(save_path, device="cuda", dtype=torch.bfloat16)
outputs = model.generate(input_ids, max_new_tokens=100)
print("Generated text:", tokenizer.batch_decode(outputs)[0])
Downloads last month
177
Safetensors
Model size
1.46B params
Tensor type
BF16
ยท
Inference Providers NEW
This model is not currently available via any of the supported third-party Inference Providers, and the model is not deployed on the HF Inference API.

Model tree for nouamanetazi/hf-ar-134000

Finetunes
1 model
Quantizations
1 model

Space using nouamanetazi/hf-ar-134000 1