Views
No views yet
head_dim=64)deepseek-ai/DeepSeek-R1 (Vocab Size: 128,000) - Note: Requires trust_remote_code=Truemax_position_embeddings=4096, demo training used sequence_length=256.wikitext-2-raw-v1, ~2M tokens) for demonstration purposes. The tokenized versions (wikitext2_tokens_128k.pt, wikitext2_val_tokens_128k.pt) are included in the repository.step_600.pt, step_800.pt, potentially others) represent states after very limited training.loss_plot_*.png for visualization.model_architecture.py) from this repository. It cannot be loaded directly using AutoModelForCausalLM.1git clone https://huggingface.co/DrNerd/LLAMA-3-From-Scartch
2cd LLAMA-3-From-Scartch
3# Ensure LFS files are downloaded (if needed)
4# git lfs pullpip install torch transformers datasets matplotlib tqdm # Add others if neededinference.py):
The inference.py script loads a checkpoint (defaults to step_1200.pt or latest if not found, edit the script to specify step_800.pt or step_600.pt) and runs generation.
1# Make sure step_600.pt or step_800.pt exists in the directory
2# Edit inference.py to point to the desired checkpoint file
3python inference.pyinference.py into your own script.