Instructions to use avgJo3/a2d-gpt-neox-160M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use avgJo3/a2d-gpt-neox-160M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="avgJo3/a2d-gpt-neox-160M", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("avgJo3/a2d-gpt-neox-160M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use avgJo3/a2d-gpt-neox-160M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "avgJo3/a2d-gpt-neox-160M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "avgJo3/a2d-gpt-neox-160M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/avgJo3/a2d-gpt-neox-160M
- SGLang
How to use avgJo3/a2d-gpt-neox-160M 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 "avgJo3/a2d-gpt-neox-160M" \ --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": "avgJo3/a2d-gpt-neox-160M", "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 "avgJo3/a2d-gpt-neox-160M" \ --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": "avgJo3/a2d-gpt-neox-160M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use avgJo3/a2d-gpt-neox-160M with Docker Model Runner:
docker model run hf.co/avgJo3/a2d-gpt-neox-160M
a2d-gpt-neox-160M
Base autoregressive → MLM diffusion models derived from the EleutherAI Pythia family.
These are base models only (no supervised fine-tuning / instruction tuning).
Model description
- Model type: Decoder-only Transformer converted to Masked Language Modeling (MLM) diffusion architecture
- Base architecture: Pythia (GPT-NeoX)
Variants
| Size | HF Base | Checkpoint | Total Params | Non-embedding Params | Tokens seen (pretrain) | Tokens / Param |
|---|---|---|---|---|---|---|
| 70M | EleutherAI/pythia-70m |
step 512 | 70.4M | 18.9M | ~1.07B | ~15 + continued |
| 160M | EleutherAI/pythia-160m |
step 1000 | ~162M | ~125M | ~2.1B | ~13 + continued |
| 410M | EleutherAI/pythia-410m |
step 3000 | 405.3M | ~350M | ~6.29B | ~15.5 + continued |
Original Pythia pretraining & checkpoint selection (EleutherAI):
All models were initialized from Pythia checkpoints selected according to Chinchilla scaling laws (Hoffmann et al., 2022) targeting ~15 tokens per parameter (slightly undertrained regime) for consistency across the model family.
- Dataset: The Pile
- Total tokens in Pythia run: 299.9B
- Checkpoint interval: every 2,097,152 tokens (~2M batch size)
Selected checkpoints:
- 70M: step 512 (~1.07B tokens, ~15 tok/param)
- 160M: step 1000 (~2.1B tokens, ~13 tok/param)
- 410M: step 3000 (~6.29B tokens, ~15.5 tok/param)
Intended uses & limitations
- Research on autoregressive-to-diffusion conversion
- Continued pre-training and domain adaptation experiments
- Analysis of scaling behavior in hybrid MLM diffusion models
- Not intended for direct deployment or chat/instruction use (base models only)
Training and evaluation data
Continued pre-training: All models were further trained on the same subset of ~3B tokens sampled from FineWeb-Edu using (masked) causal language modeling objective.
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.001
- train_batch_size: 64
- eval_batch_size: 64
- seed: 46
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.85,0.94) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 468
- training_steps: 4687
How to Get Started with the Model
Use the following code to get started with the model:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "avgJo3/a2d-gpt-neox-160M" # or 70m / 160m variant
revision = "main" # or specific checkpoint tag if uploaded separately
model = AutoModelForCausalLM.from_pretrained(
model_name,
revision=revision,
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(
model_name,
revision=revision,
trust_remote_code=True
)
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.8.5
- Tokenizers 0.22.2
Citation
@article{biderman2023pythia,
title={Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling},
author={Biderman, Stella and others},
journal={ICML},
year={2023}
}
- Downloads last month
- 96
Model tree for avgJo3/a2d-gpt-neox-160M
Base model
EleutherAI/pythia-160m