Text Generation
Transformers
Safetensors
PyTorch
English
aro_babylm
causal-lm
custom-code
babylm
babylm-2026
small-language-model
custom_code
Run this model with HF Jobs
Run AwakeningOS/ARO-BabyLM-1B-Cooldown 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/AwakeningOS/ARO-BabyLM-1B-Cooldown. 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/AwakeningOS/ARO-BabyLM-1B-Cooldown 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/AwakeningOS/ARO-BabyLM-1B-Cooldown. 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/AwakeningOS/ARO-BabyLM-1B-Cooldown. 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 AwakeningOS/ARO-BabyLM-1B-Cooldown with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AwakeningOS/ARO-BabyLM-1B-Cooldown with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AwakeningOS/ARO-BabyLM-1B-Cooldown", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("AwakeningOS/ARO-BabyLM-1B-Cooldown", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AwakeningOS/ARO-BabyLM-1B-Cooldown with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AwakeningOS/ARO-BabyLM-1B-Cooldown" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AwakeningOS/ARO-BabyLM-1B-Cooldown", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AwakeningOS/ARO-BabyLM-1B-Cooldown
- SGLang
How to use AwakeningOS/ARO-BabyLM-1B-Cooldown 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 "AwakeningOS/ARO-BabyLM-1B-Cooldown" \ --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": "AwakeningOS/ARO-BabyLM-1B-Cooldown", "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 "AwakeningOS/ARO-BabyLM-1B-Cooldown" \ --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": "AwakeningOS/ARO-BabyLM-1B-Cooldown", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AwakeningOS/ARO-BabyLM-1B-Cooldown with Docker Model Runner:
docker model run hf.co/AwakeningOS/ARO-BabyLM-1B-Cooldown
Download aro/data.py from AwakeningOS/ARO-BabyLM-1B-Cooldown: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/AwakeningOS/ARO-BabyLM-1B-Cooldown/resolve/main/aro/data.py
- Command line
-
hf download hf://AwakeningOS/ARO-BabyLM-1B-Cooldown/aro/data.py
-
curl -L -o data.py https://huggingface.co/AwakeningOS/ARO-BabyLM-1B-Cooldown/resolve/main/aro/data.py
1.56 kB
| from __future__ import annotations | |
| import numpy as np | |
| import torch | |
| from torch.utils.data import IterableDataset, get_worker_info | |
| class MemmapTokenDataset(IterableDataset): | |
| """Minimal contiguous adapter for an existing pretokenized stream. | |
| Each item contains ``seq_len`` inputs and their immediately following | |
| next-token labels. Consecutive items advance by ``seq_len`` tokens, so the | |
| transition at each sequence boundary is preserved instead of skipped. | |
| Formal experiments should still use the project's canonical logical-stream | |
| loader so exact shard order, cursor and hashes match prior runs. | |
| """ | |
| def __init__(self, path: str, seq_len: int, dtype: str = "uint16", seed: int = 1337, start_sequence: int = 0): | |
| self.path = path | |
| self.seq_len = seq_len | |
| self.dtype = np.dtype(dtype) | |
| self.seed = seed | |
| self.start_sequence = start_sequence | |
| def __iter__(self): | |
| arr = np.memmap(self.path, mode="r", dtype=self.dtype) | |
| n = (len(arr) - 1) // self.seq_len | |
| worker = get_worker_info() | |
| worker_id = 0 if worker is None else worker.id | |
| workers = 1 if worker is None else worker.num_workers | |
| first = self.start_sequence + worker_id | |
| for i in range(first, n, workers): | |
| start = i * self.seq_len | |
| x = np.asarray(arr[start : start + self.seq_len], dtype=np.int64) | |
| y = np.asarray(arr[start + 1 : start + self.seq_len + 1], dtype=np.int64) | |
| yield torch.from_numpy(x.copy()), torch.from_numpy(y.copy()) | |