Downloads · 30 days
2
2% of all-time downloads
Sanjarbek1024/gpt2-instruct
gpt2-instruct is a machine learning model from Sanjarbek1024. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a fine-tuned GPT-2 model for instruction-following tasks.
Downloads · 30 days
2
2% of all-time downloads
All-time downloads
87
Public
Parameters
124M
498 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 99%
From the Hugging Face model README
This is a fine-tuned GPT-2 model for instruction-following tasks.
from transformers import pipeline
chat = pipeline( "text-generation", model="Sanjarbek1024/gpt2-instruct", tokenizer="Sanjarbek1024/gpt2-instruct" )
prompt = "<|user|>\nWhat is AI?\n<|assistant|>\n"
result = chat(prompt, max_new_tokens=100) print(result[0]["generated_text"])