Text Generation
Transformers
Safetensors
English
llama
monolingual-pretraining
double-trouble
babylm
pretraining
representation-analysis
text-generation-inference
Run this model with HF Jobs
Run iamshnoo/en_50m_s1 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/iamshnoo/en_50m_s1. 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/iamshnoo/en_50m_s1 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/iamshnoo/en_50m_s1. 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/iamshnoo/en_50m_s1. 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 iamshnoo/en_50m_s1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iamshnoo/en_50m_s1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="iamshnoo/en_50m_s1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("iamshnoo/en_50m_s1") model = AutoModelForCausalLM.from_pretrained("iamshnoo/en_50m_s1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use iamshnoo/en_50m_s1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "iamshnoo/en_50m_s1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iamshnoo/en_50m_s1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/iamshnoo/en_50m_s1
- SGLang
How to use iamshnoo/en_50m_s1 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 "iamshnoo/en_50m_s1" \ --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": "iamshnoo/en_50m_s1", "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 "iamshnoo/en_50m_s1" \ --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": "iamshnoo/en_50m_s1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use iamshnoo/en_50m_s1 with Docker Model Runner:
docker model run hf.co/iamshnoo/en_50m_s1
Add paper links and citation
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071---language:- enlibrary_name: transformerspipeline_tag: text-generationdatasets:- BabyLM-community/babylm-engtags:- monolingual-pretraining- double-trouble- babylm- pretraining- representation-analysis- arxiv:2608.26576---
# en_50m_s1
An English-only seed control. It repeats `en_50m` with a different random seed. It is one of the 40 checkpoints released with the paper "Double Trouble: Bilingual Pretraining Leaves Language-Conditioned Effects in Shared-Language Representations" (EMNLP 2026).
[Paper (EMNLP 2026)](https://aclanthology.org/2026.emnlp-main.2062/) | [arXiv](https://arxiv.org/abs/2608.26576) | [Project page](https://iamshnoo.github.io/double_trouble/) | [Code](https://github.com/iamshnoo/bli)
## Model
All 40 models in the study share one architecture, tokenizer, training recipe and data source (BabyBabelLM). Each is a decoder-only model with about 310M parameters (12 layers, hidden size 768, 12 attention heads, 512-token context), trained from scratch. The tokenizer and vocabulary come from `meta-llama/Llama-3.2-1B`; no pretrained Llama weights are loaded.
This checkpoint:
- Language: English- English data: the shared English partition of `BabyLM-community/babylm-eng`- Training tokens: about 49.2M (1,500 steps of 32,768 tokens)- Seed: 101
In the paper the English-only seed runs give the reference for how much two models differ from random seed alone.
The full list of runs, with data sources, token budgets, seeds and optimization settings, is in the [training manifest](https://github.com/iamshnoo/bli/blob/main/configs/train_manifest.json) of the code repository.
## Use
```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("iamshnoo/en_50m_s1")model = AutoModelForCausalLM.from_pretrained("iamshnoo/en_50m_s1")```
These are small models trained on about 50M to 100M tokens for a study of internal representations. They are meant for representation analysis and for reproducing the paper, and they are not meant for text generation in applications.
## Citation
```bibtex@inproceedings{mukherjee-etal-2026-double, title = "Double Trouble: Bilingual Pretraining Leaves Language-Conditioned Effects in Shared-Language Representations", author = "Mukherjee, Anjishnu and Zhu, Ziwei and Anastasopoulos, Antonios", editor = "Lee, Hung-Yi and Dev, Sunipa and Li, Junyi Jessy and Elliott, Desmond", booktitle = "Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing", month = oct, year = "2026", address = "Budapest, Hungary", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2026.emnlp-main.2062/", doi = "10.18653/2026.emnlp-main.2062", pages = "46953--46977", ISBN = "979-8-89176-459-0"}```README.mdAdded+71