Run this model with HF Jobs
Run anonym5035/converted_gpt_2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/anonym5035/converted_gpt_2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/anonym5035/converted_gpt_2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/anonym5035/converted_gpt_2. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/anonym5035/converted_gpt_2. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use anonym5035/converted_gpt_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anonym5035/converted_gpt_2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anonym5035/converted_gpt_2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("anonym5035/converted_gpt_2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use anonym5035/converted_gpt_2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anonym5035/converted_gpt_2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anonym5035/converted_gpt_2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/anonym5035/converted_gpt_2
- SGLang
How to use anonym5035/converted_gpt_2 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 "anonym5035/converted_gpt_2" \ --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": "anonym5035/converted_gpt_2", "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 "anonym5035/converted_gpt_2" \ --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": "anonym5035/converted_gpt_2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use anonym5035/converted_gpt_2 with Docker Model Runner:
docker model run hf.co/anonym5035/converted_gpt_2
XpertGPT (Sliding Window 64, 16, 8, 4)
XpertGPT is a sparse Mixture of Experts (MoE) language model designed for data-efficient pretraining under the BabyLM 2026 challenge (Strict-Small 10M track). It leverages Parallelized Multi-Scale Information Transmission (MSIT) and Expert Choice Routing to maximize representational capacity within restricted token budgets.
This version implements corrected LayerNorms, redundant residual removal, and expanded sliding window sizes across parallel expert channels.
1. Expert Sliding Window Layout
The four parallel MoE experts are configured with distinct sliding window attention constraints to capture varying context ranges (multi-scale sequence features):
- Expert 1: Window size
64tokens - Expert 2: Window size
16tokens - Expert 3: Window size
8tokens - Expert 4: Window size
4tokens
2. Architectural Layout & Changes
This model implements:
- Removal of Redundant Residual (
res3):- Removed redundant residual connection around the global dense block. Gated input is now simply $X_2 = X_1$.
- Introduction of Post-Block LayerNorm (
ln3):- LayerNorm
ln3is added after the Residual 2 Feed-Forward Network addition inside everyMSITBranchBlock(global block and all expert blocks). - Formulation: $X_{\text{out}} = \text{LayerNorm}(X^{(2)})$.
- LayerNorm
- Introduction of Post-MoE LayerNorm (
ln_post_moe):- LayerNorm
ln_post_moeis added after the Residual 4 MoE aggregation. - Formulation: $X_{\text{out}} = \text{LayerNorm}(X_2 + X_{3, \text{full}})$.
- LayerNorm
3. Checkpoint Branch Layout
Checkpoints are saved as separate git branches (revisions) on this repository:
- 1M to 10M words: Saved every 1M words (
chck_1Mthroughchck_10M). - 10M to 100M words: Saved every 10M words (
chck_10Mthroughchck_100M). - Final Model: Saved under the
mainbranch.
4. How to Load and Use Checkpoints (Bypass Retraining)
A. Loading the Final Model (main branch)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"anonymous_user/correct_small_sw_64_16_8_4_norm_residuls_xpert_strcit_small",
revision="main",
trust_remote_code=True
).eval()
tokenizer = AutoTokenizer.from_pretrained(
"anonymous_user/correct_small_sw_64_16_8_4_norm_residuls_xpert_strcit_small",
revision="main"
)
B. Loading an Intermediate Milestone (e.g. chck_5M)
model_5m = AutoModelForCausalLM.from_pretrained(
"anonymous_user/correct_small_sw_64_16_8_4_norm_residuls_xpert_strcit_small",
revision="chck_5M",
trust_remote_code=True
).eval()
docker model run hf.co/anonym5035/converted_gpt_2