Downloads · 30 days
14
5% of all-time downloads
itarutomy/llm_workshop_hands_on_gpt-model
llm_workshop_hands_on_gpt-model is a text generation model from itarutomy. Use it when you need the model to write or continue text. The card lists the license as mit.
本モデルはチュートリアル「Let's develop LLMs from scratch」から学習した小型GPTモデルです。
Downloads · 30 days
14
5% of all-time downloads
All-time downloads
257
Public
Parameters
13.7M
306 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin54.8 MB · 50%
How the weights are stored.
F3213.7M · 100%
From the Hugging Face model README
本モデルはチュートリアル「Let's develop LLMs from scratch」から学習した小型GPTモデルです。
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("gpt2")
model = AutoModelForCausalLM.from_pretrained(
"itarutomy/llm_workshop_hands_on_gpt-model",
trust_remote_code=True
)
print(tok.decode(model.generate(**tok("こんにちは", return_tensors="pt"))[0]))