Downloads · 30 days
5
13% of all-time downloads
aitetic/gptr-noomo-0.3b
gptr-noomo-0.3b is a machine learning model from aitetic. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
EPOCHS: 1 BATCHSIZE: 7 LR: 8e-5 BLOCKSZ: 512 GPU: NVIDIA A100-SXM4-80GB Time: 40(hours)
Downloads · 30 days
5
13% of all-time downloads
All-time downloads
39
Public
Repo size
3.8 GB
Likes
0
Public
Click a slice to open those files.
.pt2.4 GB · 64%
From the Hugging Face model README
import torch
from transformers import GPT2TokenizerFast
from modeling_gptr import GPTRForCausalLM
model = GPTRForCausalLM.from_pretrained("aitetic/gptr-noomo-0.3b", local_files_only=False)
tokenizer = GPT2TokenizerFast.from_pretrained(f"aitetic/gptr-noomo-0.3b", local_files_only=False)
prompt = "The future of AI is"
input_ids = tokenizer(prompt, return_tensors="pt")
generated_ids = model.generate(
input_ids,
max_new_tokens=120,
do_sample=False,
eos_token_id=tokenizer.eos_token_id
)
output_ids = generated_ids[0].detach().cpu().tolist()
print("Generated:", tokenizer.decode(output_ids, skip_special_tokens=True))