Downloads · 30 days
2
9% of all-time downloads
kedar18/trainai-essays
trainai-essays is a machine learning model from kedar18. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A small base language model trained from scratch with TrainAI. It completes text; it is not an instruction-following assistant. Ask it a question and it will continue the question rather than answer it.
Downloads · 30 days
2
9% of all-time downloads
All-time downloads
23
Public
Parameters
5.3M
21.2 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors21.2 MB · 97%
From the Hugging Face model README
A small base language model trained from scratch with TrainAI. It completes text; it is not an instruction-following assistant. Ask it a question and it will continue the question rather than answer it.
This is a LlamaForCausalLM -- the architecture TrainAI trains is structurally a Llama (RMSNorm, rotary embeddings, SwiGLU, grouped-query attention, no biases), so the weights are the same tensors under HuggingFace's names.
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("./")
model = AutoModelForCausalLM.from_pretrained("./")
ids = tokenizer("Once upon a time", return_tensors="pt")
print(tokenizer.decode(model.generate(**ids, max_new_tokens=50)[0]))
Exported from step-0001862.pt (best) of the
run at runs/essays-run. Tokenizer fingerprint
a31e62e0d4fb4e892c9c9c80f4f2f940a75a818cba9f7c929de0bae1cf6a56f5 -- the tokenizer in this directory is the one the
model was trained with, and no other tokenizer will produce sensible output from
these weights.