Instructions to use Serdar404/RecGPT-10M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Serdar404/RecGPT-10M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Serdar404/RecGPT-10M", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Serdar404/RecGPT-10M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Serdar404/RecGPT-10M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Serdar404/RecGPT-10M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Serdar404/RecGPT-10M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Serdar404/RecGPT-10M
- SGLang
How to use Serdar404/RecGPT-10M 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 "Serdar404/RecGPT-10M" \ --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": "Serdar404/RecGPT-10M", "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 "Serdar404/RecGPT-10M" \ --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": "Serdar404/RecGPT-10M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Serdar404/RecGPT-10M with Docker Model Runner:
docker model run hf.co/Serdar404/RecGPT-10M
Add RecGPT-10M model card
Browse files
README.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
license: mit
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- babylm
|
| 9 |
+
- babylm-2026
|
| 10 |
+
- strict-small
|
| 11 |
+
- custom_code
|
| 12 |
---
|
| 13 |
+
|
| 14 |
+
# RecGPT-10M
|
| 15 |
+
|
| 16 |
+
RecGPT-10M is a 34.17M-parameter recursive causal language model trained for the BabyLM 2026 Strict-Small track. It was trained for 10 epochs on a custom 10M-word English corpus using a 32,768-token BPE vocabulary.
|
| 17 |
+
|
| 18 |
+
The model applies a shared Transformer block recursively for 16 iterations. Its hidden size is 768, embedding size is 192, and feed-forward intermediate size is 12,288. Training used Muon for the recursive block and AdamW for the embedding-related parameters, with a token batch size of 32,768 and sequence length 256.
|
| 19 |
+
|
| 20 |
+
## Usage
|
| 21 |
+
|
| 22 |
+
This repository contains custom Transformers code, so loading requires `trust_remote_code=True`:
|
| 23 |
+
|
| 24 |
+
```python
|
| 25 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 26 |
+
|
| 27 |
+
model_id = "Serdar404/RecGPT-10M"
|
| 28 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 29 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
The model is intended for scoring text as a causal language model. KV-cache generation is not currently implemented.
|
| 33 |
+
|
| 34 |
+
## BabyLM 2026 evaluation
|
| 35 |
+
|
| 36 |
+
Final-checkpoint results before leaderboard collation:
|
| 37 |
+
|
| 38 |
+
| Evaluation | Score |
|
| 39 |
+
|---|---:|
|
| 40 |
+
| BLiMP | 73.11 |
|
| 41 |
+
| BLiMP Supplement | 61.73 |
|
| 42 |
+
| EWoK | 52.62 |
|
| 43 |
+
| Entity Tracking | 16.59 |
|
| 44 |
+
| COMPS | 55.43 |
|
| 45 |
+
| GlobalPIQA | 40.68 |
|
| 46 |
+
| (Super)GLUE | 66.64 |
|
| 47 |
+
| NLP Average | 52.40 |
|
| 48 |
+
|
| 49 |
+
Intermediate Strict-Small checkpoints are published as Hub revisions named `chck_1M` through `chck_100M` using the official BabyLM checkpoint schedule.
|
| 50 |
+
|
| 51 |
+
## Resources
|
| 52 |
+
|
| 53 |
+
- Training code: https://github.com/serdardoesml/bblm26-recgpt
|
| 54 |
+
- Dataset construction: https://github.com/serdardoesml/bblm26-dataset
|
| 55 |
+
- Evaluation fork: https://github.com/serdardoesml/babylm-eval
|
| 56 |
+
|
| 57 |
+
## Limitations
|
| 58 |
+
|
| 59 |
+
This is a small research model trained under the BabyLM data constraint. It is not intended for production deployment, factual question answering, or safety-critical use. Its outputs may contain inaccuracies or undesirable content inherited from its training data.
|