Instructions to use gpjt/1xrtx3090-baseline with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gpjt/1xrtx3090-baseline with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gpjt/1xrtx3090-baseline", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("gpjt/1xrtx3090-baseline", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gpjt/1xrtx3090-baseline with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gpjt/1xrtx3090-baseline" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gpjt/1xrtx3090-baseline", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/gpjt/1xrtx3090-baseline
- SGLang
How to use gpjt/1xrtx3090-baseline with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "gpjt/1xrtx3090-baseline" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gpjt/1xrtx3090-baseline", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "gpjt/1xrtx3090-baseline" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gpjt/1xrtx3090-baseline", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use gpjt/1xrtx3090-baseline with Docker Model Runner:
docker model run hf.co/gpjt/1xrtx3090-baseline
Update README.md
Browse files
README.md
CHANGED
|
@@ -40,7 +40,7 @@ LLM, please do feel free to play with it!
|
|
| 40 |
### Model Sources
|
| 41 |
|
| 42 |
- **Repository:** [gpjt/ddp-base-model-from-scratch](https://github.com/gpjt/ddp-base-model-from-scratch)
|
| 43 |
-
- **Blog post:** [Writing an LLM from scratch, part
|
| 44 |
|
| 45 |
## How to Get Started with the Model
|
| 46 |
|
|
@@ -78,11 +78,11 @@ number of tokens. It's [both dumb and ignorant](https://www.gilesthomas.com/202
|
|
| 78 |
|
| 79 |
## Training Details
|
| 80 |
|
| 81 |
-
- **Machine type:**
|
| 82 |
- **Tokens:** 3,260,190,720 (Chinchilla-optimal of 20x parameters) rounded up to the nearest batch.
|
| 83 |
- **Dataset:** [gpjt/fineweb-gpt2-tokens](https://huggingface.co/datasets/gpjt/fineweb-gpt2-tokens)
|
| 84 |
- **Micro-batch size:** 6
|
| 85 |
-
- **Global batch size:**
|
| 86 |
- **Dropout:** 0.1
|
| 87 |
- **Gradient clipping:** None
|
| 88 |
- **Learning rate:** 0.0004
|
|
|
|
| 40 |
### Model Sources
|
| 41 |
|
| 42 |
- **Repository:** [gpjt/ddp-base-model-from-scratch](https://github.com/gpjt/ddp-base-model-from-scratch)
|
| 43 |
+
- **Blog post:** [Writing an LLM from scratch, part 32k -- Interventions: training a better model locally with gradient accumulation](https://staging.gilesthomas.com/2026/04/llm-from-scratch-32k-interventions-training-our-best-model-locally-gradient-accumulation)
|
| 44 |
|
| 45 |
## How to Get Started with the Model
|
| 46 |
|
|
|
|
| 78 |
|
| 79 |
## Training Details
|
| 80 |
|
| 81 |
+
- **Machine type:** Local machine with an RTX 3090
|
| 82 |
- **Tokens:** 3,260,190,720 (Chinchilla-optimal of 20x parameters) rounded up to the nearest batch.
|
| 83 |
- **Dataset:** [gpjt/fineweb-gpt2-tokens](https://huggingface.co/datasets/gpjt/fineweb-gpt2-tokens)
|
| 84 |
- **Micro-batch size:** 6
|
| 85 |
+
- **Global batch size:** 96 (using 12 gradient accumulation steps)
|
| 86 |
- **Dropout:** 0.1
|
| 87 |
- **Gradient clipping:** None
|
| 88 |
- **Learning rate:** 0.0004
|