Downloads · 30 days
12
17% of all-time downloads
Team-Aiko/TeamAiko-GPT-Neo-1.3B
TeamAiko-GPT-Neo-1.3B is a text generation model from Team-Aiko. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This is the TeamAiko-GPT-Neo-1.3B model, a customized version of the EleutherAI/gpt-neo-1.3B model. This model has been branded and configured for use by Team Aiko. Note: This is the base version of the model and has…
Downloads · 30 days
12
17% of all-time downloads
All-time downloads
72
Public
Repo size
10.6 GB
Likes
0
Public
Click a slice to open those files.
.bin5.3 GB · 100%
From the Hugging Face model README
This is the TeamAiko-GPT-Neo-1.3B model, a customized version of the EleutherAI/gpt-neo-1.3B model. This model has been branded and configured for use by Team Aiko. Note: This is the base version of the model and has not been trained on any specific datasets.
To use this model, you can load it with the transformers library:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Path to the model folder
model_path = "Team-Aiko/TeamAiko-GPT-Neo-1.3B"
# Set device to CPU to limit RAM usage
device = torch.device("cpu")
torch.set_num_threads(4) # Limit the number of threads used by PyTorch
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path)
model.to(device) # Move model to CPU
# Test the model with a sample input
input_text = "Once upon a time in a land far, far away"
inputs = tokenizer(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs["input_ids"], max_length=50, num_return_sequences=1, no_repeat_ngram_size=2, early_stopping=True)
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print("Generated text:", generated_text)