How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="0x7o/pyGPT-50M")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("0x7o/pyGPT-50M")
model = AutoModelForCausalLM.from_pretrained("0x7o/pyGPT-50M", device_map="auto")
Quick Links

PythonGPT

A GPT2-type neural network trained on 16 gigabytes of Pyhon scripts from scratch. It has 50 million parameters.

Made as a toy.

Downloads last month
147
Safetensors
Model size
85.6M params
Tensor type
F32
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for 0x7o/pyGPT-50M

Quantizations
2 models