Downloads · 30 days
15
20% of all-time downloads
ajaxdavis/fourth-gpt
fourth-gpt is a text generation model from ajaxdavis. Use it when you need the model to write or continue text. It is set up for pytorch. The card lists the license as mit.
A tiny (344K parameter) character-level GPT trained for casual conversation.
Downloads · 30 days
15
20% of all-time downloads
All-time downloads
75
Public
Repo size
4.2 MB
Likes
0
Public
Click a slice to open those files.
.pt1.4 MB · 99%
From the Hugging Face model README
A tiny (344K parameter) character-level GPT trained for casual conversation.
| Property | Value |
|---|---|
| Parameters | 344,256 |
| Architecture | Decoder-only Transformer |
| Layers | 3 |
| Embedding Dim | 96 |
| Attention Heads | 6 |
| Context Window | 64 characters |
| Vocabulary | 29 (a-z, space, pipe, BOS) |
| Tokenization | Character-level |
| Framework | PyTorch |
prompt|response with | as turn separatorimport torch
from model import FourthModel
model = FourthModel()
model.load()
response = model.generate("hello")
print(response) # "hi there friend"
An OpenAI-compatible API is available as a Hugging Face Space:
curl https://ajaxdavis-fourth-gpt-api.hf.space/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"fourth-gpt","messages":[{"role":"user","content":"hello"}]}'
MIT