Downloads · 30 days
81
13% of all-time downloads
k050506koch/GPT4-dev-177M-1511
GPT4-dev-177M-1511 is a text generation model from k050506koch. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This directory contains a development checkpoint of my small GPT-4-style language model saved at 78,000 training steps. The model is trained using PyTorch and the Hugging Face Transformers library.
Downloads · 30 days
81
13% of all-time downloads
All-time downloads
645
Public
Parameters
177M
709 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors709 MB · 99%
From the Hugging Face model README
This directory contains a development checkpoint of my small GPT-4-style language model saved at 78,000 training steps. The model is trained using PyTorch and the Hugging Face Transformers library.
These weights are intended for research and experimentation. You can either:
GPT4-dev-177M-1511 in this repo) with the training/inference scripts.All core training and inference code lives in this repository (see train.py, modeling_gpt4dev.py, and inference2.py).
More detailed in EVALS.md
I plan to continue training and to release instruction-tuned variants based on this model in the future.
HuggingFaceFW/finewebThis is not a production-ready model. It is a snapshot from an ongoing run, shared so others can tinker with it.
Example with Hugging Face Transformers:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "k050506koch/GPT4-dev-177M-1511"
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True) # trust_remote_code is required because the model has a custom architecture
tokenizer = AutoTokenizer.from_pretrained(model_id)
tokenizer.pad_token_id = tokenizer.eos_token_id
prompt = "He is a doctor. His main goal is"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_length=128,
temperature=0.7,
top_p=0.9,
repetition_penalty=1.2,
no_repeat_ngram_size=3,
num_return_sequences=1,
do_sample=True,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
You can also download the full folder and point local scripts like inference2.py to the checkpoint path if you prefer offline usage.
Contributions, issues, and any kind of feedback are very welcome! I’m a student working on these models as a learning project, so there may be mistakes or "suboptimal" design choices. If you have suggestions or find bugs, please open an issue or a pull request, I will be happy.
This model and associated code are released under the MIT License. You are free to use, modify, and build upon this work. Have fun!
Thanks to the teams and communities that made this work possible: