The best ChatGPT that $100 can buy.
Python
nuke huggingface and its giant dependency footprint from orbit. datasets still todo
Andrej Karpathy41865401f73f
diff --git a/dev/LEADERBOARD.md b/dev/LEADERBOARD.mdindex 86466b8..3319d20 100644--- a/dev/LEADERBOARD.md+++ b/dev/LEADERBOARD.md@@ -2,7 +2,7 @@Docs on participating in the "Time-to-GPT-2" leaderboard of nanochat.-The primary metric we care about is "time to GPT-2" - the wall clock time needed to outperform the GPT-2 (1.6B) CORE metric on an 8XH100 GPU node. Originally in 2019, GPT-2 was trained by OpenAI on 32 TPU v3 chips for 168 hours (7 days), with $8/hour/TPUv3 back then, for a total cost of approx. $43K. It achieves 0.256525 CORE score, which is an ensemble metric introduced in the DCLM paper over 22 evaluations like ARC/MMLU/etc.+The primary metric we care about is "time to GPT-2" - the wall clock time needed to outperform the GPT-2 (1.6B) CORE metric on an 8XH100 GPU node. Originally in 2019, GPT-2 was trained by OpenAI on 32 TPU v3 chips for 168 hours (7 days), with $8/hour/TPUv3 back then, for a total cost of approx. $43K. It achieves 0.256525 CORE score, which is an ensemble metric introduced in the DCLM paper over 22 evaluations like ARC/MMLU/etc. (To re-verify this baseline yourself: `base_eval.py` used to support evaluating HuggingFace models via `--hf-path openai-community/gpt2-xl`, removed for simplicity; see commit `21a7774` or earlier.)## How todiff --git a/nanochat/tokenizer.py b/nanochat/tokenizer.pyindex e604602..36880f5 100644--- a/nanochat/tokenizer.py+++ b/nanochat/tokenizer.py@@ -1,9 +1,5 @@"""-BPE Tokenizer in the style of GPT-4.--Two implementations are available:-1) HuggingFace Tokenizer that can do both training and inference but is really confusing-2) Our own RustBPE Tokenizer for training and tiktoken for efficient inference+BPE Tokenizer in the style of GPT-4: train with rustbpe, inference with tiktoken."""import os@@ -29,131 +25,6 @@ SPECIAL_TOKENS = [# I verified that 2 is the sweet spot for vocab size of 32K. 1 is a bit worse, 3 was worse still.SPLIT_PATTERN = r"""'(?i:[sdmt]|ll|ve|re)|[^\r\n\p{L}\p{N}]?+\p{L}+|\p{N}{1,2}| ?[^\s\p{L}\p{N}]++[\r\n]*|\s*[\r\n]|\s+(?!\S)|\s+"""-# ------------------------------------------------------------------------------# Generic GPT-4-style tokenizer based on HuggingFace Tokenizer-from tokenizers import Tokenizer as HFTokenizer-from tokenizers import pre_tokenizers, decoders, Regex-from tokenizers.models import BPE-from tokenizers.trainers import BpeTrainer--class HuggingFaceTokenizer:- """Light wrapper around HuggingFace Tokenizer for some utilities"""-- def __init__(self, tokenizer):- self.tokenizer = tokenizer-- @classmethod- def from_pretrained(cls, hf_path):- # init from a HuggingFace pretrained tokenizer (e.g. "gpt2")- tokenizer = HFTokenizer.from_pretrained(hf_path)- return cls(tokenizer)-- @classmethod- def from_directory(cls, tokenizer_dir):- # init from a local directory on disk (e.g. "out/tokenizer")- tokenizer_path = os.path.join(tokenizer_dir, "tokenizer.json")- tokenizer = HFTokenizer.from_file(tokenizer_path)- return cls(tokenizer)-- @classmethod- def train_from_iterator(cls, text_iterator, vocab_size):- # train from an iterator of text- # Configure the HuggingFace Tokenizer- tokenizer = HFTokenizer(BPE(- byte_fallback=True, # needed!- unk_token=None,- fuse_unk=False,- ))- # Normalizer: None- tokenizer.normalizer = None- # Pre-tokenizer: GPT-4 style- # the regex pattern used by GPT-4 to split text into groups before BPE- # NOTE: The pattern was changed from \p{N}{1,3} to \p{N}{1,2} because I suspect it is harmful to- # very small models and smaller vocab sizes, because it is a little bit wasteful in the token space.- # (but I haven't validated this! TODO)- gpt4_split_regex = Regex(SPLIT_PATTERN) # huggingface demands that you wrap it in Regex!!- tokenizer.pre_tokenizer = pre_tokenizers.Sequence([- pre_tokenizers.Split(pattern=gpt4_split_regex, behavior="isolated", invert=False),- pre_tokenizers.ByteLevel(add_prefix_space=False, use_regex=False)- ])- # Decoder: ByteLevel (it pairs together with the ByteLevel pre-tokenizer)- tokenizer.decoder = decoders.ByteLevel()- # Post-processor: None- tokenizer.post_processor = None- # Trainer: BPE- trainer = BpeTrainer(- vocab_size=vocab_size,- show_progress=True,- min_frequency=0, # no minimum frequency- initial_alphabet=pre_tokenizers.ByteLevel.alphabet(),- special_tokens=SPECIAL_TOKENS,- )- # Kick off the training- tokenizer.train_from_iterator(text_iterator, trainer)- return cls(tokenizer)-- def get_vocab_size(self):- return self.tokenizer.get_vocab_size()-- def get_special_tokens(self):- special_tokens_map = self.tokenizer.get_added_tokens_decoder()- special_tokens = [w.content for w in special_tokens_map.values()]- return special_tokens-- def id_to_token(self, id):- return self.tokenizer.id_to_token(id)-- def _encode_one(self, text, prepend=None, append=None, num_threads=None):- # encode a single string- # prepend/append can be either a string of a special token or a token id directly.- # num_threads is ignored (only used by the nanochat Tokenizer for parallel encoding)- assert isinstance(text, str)- ids = []- if prepend is not None:- prepend_id = prepend if isinstance(prepend, int) else self.encode_special(prepend)- ids.append(prepend_id)- ids.extend(self.tokenizer.encode(text, add_special_tokens=False).ids)- if append is not None:- append_id = append if isinstance(append, int) else self.encode_special(append)- ids.append(append_id)- return ids-- def encode_special(self, text):- # encode a single special token via exact match- return self.tokenizer.token_to_id(text)-- def get_bos_token_id(self):- # Different HuggingFace models use different BOS tokens and there is little consistency- # 1) attempt to find a <|bos|> token- bos = self.encode_special("<|bos|>")- # 2) if that fails, attempt to find a <|endoftext|> token (e.g. GPT-2 models)- if bos is None:- bos = self.encode_special("<|endoftext|>")- # 3) if these fail, it's better to crash than to silently return None- assert bos is not None, "Failed to find BOS token in tokenizer"- return bos-- def encode(self, text, *args, **kwargs):- if isinstance(text, str):- return self._encode_one(text, *args, **kwargs)- elif isinstance(text, list):- return [self._encode_one(t, *args, **kwargs) for t in text]- else:- raise ValueError(f"Invalid input type: {type(text)}")-- def __call__(self, *args, **kwargs):- return self.encode(*args, **kwargs)-- def decode(self, ids):- return self.tokenizer.decode(ids, skip_special_tokens=False)-- def save(self, tokenizer_dir):- # save the tokenizer to disk- os.makedirs(tokenizer_dir, exist_ok=True)- tokenizer_path = os.path.join(tokenizer_dir, "tokenizer.json")- self.tokenizer.save(tokenizer_path)- print(f"Saved tokenizer to {tokenizer_path}")-# -----------------------------------------------------------------------------# Tokenizer based on rustbpe + tiktoken comboimport pickle@@ -394,7 +265,6 @@ def get_tokenizer():from nanochat.common import get_base_dirbase_dir = get_base_dir()tokenizer_dir = os.path.join(base_dir, "tokenizer")- # return HuggingFaceTokenizer.from_directory(tokenizer_dir)return RustBPETokenizer.from_directory(tokenizer_dir)def get_token_bytes(device="cpu"):diff --git a/pyproject.toml b/pyproject.tomlindex e8d67e5..e141527 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -10,7 +10,6 @@ dependencies = ["psutil>=7.1.0","rustbpe>=0.1.0","tiktoken>=0.11.0",- "tokenizers>=0.22.0","torch==2.9.1","wandb>=0.21.3",]@@ -21,7 +20,6 @@ dev = ["matplotlib>=3.10.8","pytest>=8.0.0","python-dotenv>=1.2.1",- "transformers>=4.57.3",][tool.pytest.ini_options]diff --git a/scripts/base_eval.py b/scripts/base_eval.pyindex b814552..d9bf021 100644--- a/scripts/base_eval.py+++ b/scripts/base_eval.py@@ -10,9 +10,6 @@ Default is all three: --eval core,bpb,sampleExamples:- # Evaluate a HuggingFace model (e.g. GPT-2 124M) using 8 GPUs- torchrun --nproc_per_node=8 -m scripts.base_eval --hf-path openai-community/gpt2-# Evaluate a nanochat model (e.g. d24) using 8 GPUstorchrun --nproc_per_node=8 -m scripts.base_eval --model-tag d24 --device-batch-size=16@@ -32,60 +29,13 @@ import argparseimport torchfrom nanochat.common import compute_init, compute_cleanup, print0, get_base_dir, autodetect_device_type, download_file_with_lock-from nanochat.tokenizer import HuggingFaceTokenizer, get_token_bytes+from nanochat.tokenizer import get_token_bytesfrom nanochat.checkpoint_manager import load_modelfrom nanochat.core_eval import evaluate_taskfrom nanochat.dataloader import tokenizing_distributed_data_loader_bos_bestfitfrom nanochat.loss_eval import evaluate_bpbfrom nanochat.engine import Engine-# ------------------------------------------------------------------------------# HuggingFace loading utilities--class ModelWrapper:- """Lightweight wrapper to give HuggingFace models a nanochat-compatible interface."""- def __init__(self, model, max_seq_len=None):- self.model = model- self.max_seq_len = max_seq_len-- def __call__(self, input_ids, targets=None, loss_reduction='mean'):- logits = self.model(input_ids).logits- if targets is None:- return logits- loss = torch.nn.functional.cross_entropy(- logits.view(-1, logits.size(-1)),- targets.view(-1),- ignore_index=-1,- reduction=loss_reduction- )- return loss-- def get_device(self):- return next(self.model.parameters()).device---def load_hf_model(hf_path: str, device):- """Load a HuggingFace model and tokenizer."""- print0(f"Loading HuggingFace model from: {hf_path}")- from transformers import AutoModelForCausalLM- model = AutoModelForCausalLM.from_pretrained(hf_path)- model.to(device)- model.eval()- max_seq_len = 1024 if "gpt2" in hf_path else None- model = ModelWrapper(model, max_seq_len=max_seq_len)- tokenizer = HuggingFaceTokenizer.from_pretrained(hf_path)- return model, tokenizer---def get_hf_token_bytes(tokenizer, device="cpu"):- """Compute token_bytes tensor for a HuggingFace tokenizer."""- vocab_size = tokenizer.tokenizer.get_vocab_size()- token_bytes = torch.zeros(vocab_size, dtype=torch.int64, device=device)- for token_id in range(vocab_size):- token_str = tokenizer.tokenizer.decode([token_id])- token_bytes[token_id] = len(token_str.encode('utf-8'))- return token_bytes-# -----------------------------------------------------------------------------# CORE evaluation@@ -178,7 +128,6 @@ def evaluate_core(model, tokenizer, device, max_per_task=-1):def main():parser = argparse.ArgumentParser(description="Base model evaluation")parser.add_argument('--eval', type=str, default='core,bpb,sample', help='Comma-separated evaluations to run: core,bpb,sample (default: all)')- parser.add_argument('--hf-path', type=str, default=None, help='HuggingFace model path (e.g. openai-community/gpt2-xl)')parser.add_argument('--model-tag', type=str, default=None, help='nanochat model tag to identify the checkpoint directory')parser.add_argument('--step', type=int, default=None, help='Model step to load (default = last)')parser.add_argument('--max-per-task', type=int, default=-1, help='Max examples per CORE task (-1 = all)')@@ -198,19 +147,11 @@ def main():device_type = autodetect_device_type() if args.device_type == '' else args.device_typeddp, ddp_rank, ddp_local_rank, ddp_world_size, device = compute_init(device_type)# Load model and tokenizer- is_hf_model = args.hf_path is not None- if is_hf_model:- model, tokenizer = load_hf_model(args.hf_path, device)- sequence_len = model.max_seq_len or 1024- token_bytes = get_hf_token_bytes(tokenizer, device=device)- model_name = args.hf_path- model_slug = args.hf_path.replace("/", "-")- else:- model, tokenizer, meta = load_model("base", device, phase="eval", model_tag=args.model_tag, step=args.step)- sequence_len = meta["model_config"]["sequence_len"]- token_bytes = get_token_bytes(device=device)- model_name = f"base_model (step {meta['step']})"- model_slug = f"base_model_{meta['step']:06d}"+ model, tokenizer, meta = load_model("base", device, phase="eval", model_tag=args.model_tag, step=args.step)+ sequence_len = meta["model_config"]["sequence_len"]+ token_bytes = get_token_bytes(device=device)+ model_name = f"base_model (step {meta['step']})"+ model_slug = f"base_model_{meta['step']:06d}"print0(f"Evaluating model: {model_name}")print0(f"Eval modes: {', '.join(sorted(eval_modes))}")@@ -222,7 +163,7 @@ def main():unconditioned_samples = []# --- Sampling ---- if 'sample' in eval_modes and not is_hf_model:+ if 'sample' in eval_modes:print0("\n" + "="*80)print0("Model Samples")print0("="*80)@@ -254,8 +195,6 @@ def main():print0("-" * 80)print0(sample_str)unconditioned_samples.append(sample_str)- elif 'sample' in eval_modes and is_hf_model:- print0("\nSkipping sampling for HuggingFace models (not supported)")# --- BPB evaluation ---if 'bpb' in eval_modes:diff --git a/uv.lock b/uv.lockindex a96b5c7..b75291f 100644--- a/uv.lock+++ b/uv.lock@@ -1461,7 +1461,6 @@ dependencies = [{ name = "psutil" },{ name = "rustbpe" },{ name = "tiktoken" },- { name = "tokenizers" },{ name = "torch", version = "2.9.1", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "(sys_platform == 'darwin' and extra == 'extra-8-nanochat-cpu') or (extra == 'extra-8-nanochat-cpu' and extra == 'extra-8-nanochat-gpu')" },{ name = "torch", version = "2.9.1", source = { registry = "https://pypi.org/simple" }, marker = "(extra == 'extra-8-nanochat-cpu' and extra == 'extra-8-nanochat-gpu') or (extra != 'extra-8-nanochat-cpu' and extra != 'extra-8-nanochat-gpu')" },{ name = "torch", version = "2.9.1+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "(sys_platform != 'darwin' and extra == 'extra-8-nanochat-cpu') or (extra == 'extra-8-nanochat-cpu' and extra == 'extra-8-nanochat-gpu')" },@@ -1485,7 +1484,6 @@ dev = [{ name = "matplotlib" },{ name = "pytest" },{ name = "python-dotenv" },- { name = "transformers" },][package.metadata]@@ -1496,7 +1494,6 @@ requires-dist = [{ name = "rustbpe", specifier = ">=0.1.0" },{ name = "setuptools", marker = "extra == 'cpu'", specifier = ">=65.0.0" },{ name = "tiktoken", specifier = ">=0.11.0" },- { name = "tokenizers", specifier = ">=0.22.0" },{ name = "torch", specifier = "==2.9.1" },{ name = "torch", marker = "extra == 'cpu'", specifier = "==2.9.1", index = "https://download.pytorch.org/whl/cpu", conflict = { package = "nanochat", extra = "cpu" } },{ name = "torch", marker = "extra == 'gpu'", specifier = "==2.9.1", index = "https://download.pytorch.org/whl/cu128", conflict = { package = "nanochat", extra = "gpu" } },@@ -1510,7 +1507,6 @@ dev = [{ name = "matplotlib", specifier = ">=3.10.8" },{ name = "pytest", specifier = ">=8.0.0" },{ name = "python-dotenv", specifier = ">=1.2.1" },- { name = "transformers", specifier = ">=4.57.3" },][[package]]@@ -2569,32 +2565,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/49/13/78d768a451dc9e634f933f2231b3fa9be524955ed84317b40e5528a2d906/rustbpe-0.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9f419fd428e8ffd2430945a694cb5177706550ee5c9b16737ba860ecccd5acff", size = 1075802, upload-time = "2026-01-03T22:24:10.573Z" },]-[[package]]-name = "safetensors"-version = "0.7.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/29/9c/6e74567782559a63bd040a236edca26fd71bc7ba88de2ef35d75df3bca5e/safetensors-0.7.0.tar.gz", hash = "sha256:07663963b67e8bd9f0b8ad15bb9163606cd27cc5a1b96235a50d8369803b96b0", size = 200878, upload-time = "2025-11-19T15:18:43.199Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/fa/47/aef6c06649039accf914afef490268e1067ed82be62bcfa5b7e886ad15e8/safetensors-0.7.0-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:c82f4d474cf725255d9e6acf17252991c3c8aac038d6ef363a4bf8be2f6db517", size = 467781, upload-time = "2025-11-19T15:18:35.84Z" },- { url = "https://files.pythonhosted.org/packages/e8/00/374c0c068e30cd31f1e1b46b4b5738168ec79e7689ca82ee93ddfea05109/safetensors-0.7.0-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:94fd4858284736bb67a897a41608b5b0c2496c9bdb3bf2af1fa3409127f20d57", size = 447058, upload-time = "2025-11-19T15:18:34.416Z" },- { url = "https://files.pythonhosted.org/packages/f1/06/578ffed52c2296f93d7fd2d844cabfa92be51a587c38c8afbb8ae449ca89/safetensors-0.7.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e07d91d0c92a31200f25351f4acb2bc6aff7f48094e13ebb1d0fb995b54b6542", size = 491748, upload-time = "2025-11-19T15:18:09.79Z" },- { url = "https://files.pythonhosted.org/packages/ae/33/1debbbb70e4791dde185edb9413d1fe01619255abb64b300157d7f15dddd/safetensors-0.7.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8469155f4cb518bafb4acf4865e8bb9d6804110d2d9bdcaa78564b9fd841e104", size = 503881, upload-time = "2025-11-19T15:18:16.145Z" },- { url = "https://files.pythonhosted.org/packages/8e/1c/40c2ca924d60792c3be509833df711b553c60effbd91da6f5284a83f7122/safetensors-0.7.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:54bef08bf00a2bff599982f6b08e8770e09cc012d7bba00783fc7ea38f1fb37d", size = 623463, upload-time = "2025-11-19T15:18:21.11Z" },- { url = "https://files.pythonhosted.org/packages/9b/3a/13784a9364bd43b0d61eef4bea2845039bc2030458b16594a1bd787ae26e/safetensors-0.7.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:42cb091236206bb2016d245c377ed383aa7f78691748f3bb6ee1bfa51ae2ce6a", size = 532855, upload-time = "2025-11-19T15:18:25.719Z" },- { url = "https://files.pythonhosted.org/packages/a0/60/429e9b1cb3fc651937727befe258ea24122d9663e4d5709a48c9cbfceecb/safetensors-0.7.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dac7252938f0696ddea46f5e855dd3138444e82236e3be475f54929f0c510d48", size = 507152, upload-time = "2025-11-19T15:18:33.023Z" },- { url = "https://files.pythonhosted.org/packages/3c/a8/4b45e4e059270d17af60359713ffd83f97900d45a6afa73aaa0d737d48b6/safetensors-0.7.0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1d060c70284127fa805085d8f10fbd0962792aed71879d00864acda69dbab981", size = 541856, upload-time = "2025-11-19T15:18:31.075Z" },- { url = "https://files.pythonhosted.org/packages/06/87/d26d8407c44175d8ae164a95b5a62707fcc445f3c0c56108e37d98070a3d/safetensors-0.7.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:cdab83a366799fa730f90a4ebb563e494f28e9e92c4819e556152ad55e43591b", size = 674060, upload-time = "2025-11-19T15:18:37.211Z" },- { url = "https://files.pythonhosted.org/packages/11/f5/57644a2ff08dc6325816ba7217e5095f17269dada2554b658442c66aed51/safetensors-0.7.0-cp38-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:672132907fcad9f2aedcb705b2d7b3b93354a2aec1b2f706c4db852abe338f85", size = 771715, upload-time = "2025-11-19T15:18:38.689Z" },- { url = "https://files.pythonhosted.org/packages/86/31/17883e13a814bd278ae6e266b13282a01049b0c81341da7fd0e3e71a80a3/safetensors-0.7.0-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:5d72abdb8a4d56d4020713724ba81dac065fedb7f3667151c4a637f1d3fb26c0", size = 714377, upload-time = "2025-11-19T15:18:40.162Z" },- { url = "https://files.pythonhosted.org/packages/4a/d8/0c8a7dc9b41dcac53c4cbf9df2b9c83e0e0097203de8b37a712b345c0be5/safetensors-0.7.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b0f6d66c1c538d5a94a73aa9ddca8ccc4227e6c9ff555322ea40bdd142391dd4", size = 677368, upload-time = "2025-11-19T15:18:41.627Z" },- { url = "https://files.pythonhosted.org/packages/05/e5/cb4b713c8a93469e3c5be7c3f8d77d307e65fe89673e731f5c2bfd0a9237/safetensors-0.7.0-cp38-abi3-win32.whl", hash = "sha256:c74af94bf3ac15ac4d0f2a7c7b4663a15f8c2ab15ed0fc7531ca61d0835eccba", size = 326423, upload-time = "2025-11-19T15:18:45.74Z" },- { url = "https://files.pythonhosted.org/packages/5d/e6/ec8471c8072382cb91233ba7267fd931219753bb43814cbc71757bfd4dab/safetensors-0.7.0-cp38-abi3-win_amd64.whl", hash = "sha256:d1239932053f56f3456f32eb9625590cc7582e905021f94636202a864d470755", size = 341380, upload-time = "2025-11-19T15:18:44.427Z" },- { url = "https://files.pythonhosted.org/packages/a7/6a/4d08d89a6fcbe905c5ae68b8b34f0791850882fc19782d0d02c65abbdf3b/safetensors-0.7.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f4729811a6640d019a4b7ba8638ee2fd21fa5ca8c7e7bdf0fed62068fcaac737", size = 492430, upload-time = "2025-11-19T15:18:11.884Z" },- { url = "https://files.pythonhosted.org/packages/dd/29/59ed8152b30f72c42d00d241e58eaca558ae9dbfa5695206e2e0f54c7063/safetensors-0.7.0-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:12f49080303fa6bb424b362149a12949dfbbf1e06811a88f2307276b0c131afd", size = 503977, upload-time = "2025-11-19T15:18:17.523Z" },- { url = "https://files.pythonhosted.org/packages/d3/0b/4811bfec67fa260e791369b16dab105e4bae82686120554cc484064e22b4/safetensors-0.7.0-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0071bffba4150c2f46cae1432d31995d77acfd9f8db598b5d1a2ce67e8440ad2", size = 623890, upload-time = "2025-11-19T15:18:22.666Z" },- { url = "https://files.pythonhosted.org/packages/58/5b/632a58724221ef03d78ab65062e82a1010e1bef8e8e0b9d7c6d7b8044841/safetensors-0.7.0-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:473b32699f4200e69801bf5abf93f1a4ecd432a70984df164fc22ccf39c4a6f3", size = 531885, upload-time = "2025-11-19T15:18:27.146Z" },-]-[[package]]name = "sentry-sdk"version = "2.35.2"@@ -2697,31 +2667,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/50/79/bcf350609f3a10f09fe4fc207f132085e497fdd3612f3925ab24d86a0ca0/tiktoken-0.11.0-cp313-cp313-win_amd64.whl", hash = "sha256:2177ffda31dec4023356a441793fed82f7af5291120751dee4d696414f54db0c", size = 883901, upload-time = "2025-08-08T23:57:59.359Z" },]-[[package]]-name = "tokenizers"-version = "0.22.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "huggingface-hub" },-]-sdist = { url = "https://files.pythonhosted.org/packages/5e/b4/c1ce3699e81977da2ace8b16d2badfd42b060e7d33d75c4ccdbf9dc920fa/tokenizers-0.22.0.tar.gz", hash = "sha256:2e33b98525be8453f355927f3cab312c36cd3e44f4d7e9e97da2fa94d0a49dcb", size = 362771, upload-time = "2025-08-29T10:25:33.914Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/6d/b1/18c13648edabbe66baa85fe266a478a7931ddc0cd1ba618802eb7b8d9865/tokenizers-0.22.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:eaa9620122a3fb99b943f864af95ed14c8dfc0f47afa3b404ac8c16b3f2bb484", size = 3081954, upload-time = "2025-08-29T10:25:24.993Z" },- { url = "https://files.pythonhosted.org/packages/c2/02/c3c454b641bd7c4f79e4464accfae9e7dfc913a777d2e561e168ae060362/tokenizers-0.22.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:71784b9ab5bf0ff3075bceeb198149d2c5e068549c0d18fe32d06ba0deb63f79", size = 2945644, upload-time = "2025-08-29T10:25:23.405Z" },- { url = "https://files.pythonhosted.org/packages/55/02/d10185ba2fd8c2d111e124c9d92de398aee0264b35ce433f79fb8472f5d0/tokenizers-0.22.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec5b71f668a8076802b0241a42387d48289f25435b86b769ae1837cad4172a17", size = 3254764, upload-time = "2025-08-29T10:25:12.445Z" },- { url = "https://files.pythonhosted.org/packages/13/89/17514bd7ef4bf5bfff58e2b131cec0f8d5cea2b1c8ffe1050a2c8de88dbb/tokenizers-0.22.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ea8562fa7498850d02a16178105b58803ea825b50dc9094d60549a7ed63654bb", size = 3161654, upload-time = "2025-08-29T10:25:15.493Z" },- { url = "https://files.pythonhosted.org/packages/5a/d8/bac9f3a7ef6dcceec206e3857c3b61bb16c6b702ed7ae49585f5bd85c0ef/tokenizers-0.22.0-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4136e1558a9ef2e2f1de1555dcd573e1cbc4a320c1a06c4107a3d46dc8ac6e4b", size = 3511484, upload-time = "2025-08-29T10:25:20.477Z" },- { url = "https://files.pythonhosted.org/packages/aa/27/9c9800eb6763683010a4851db4d1802d8cab9cec114c17056eccb4d4a6e0/tokenizers-0.22.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cdf5954de3962a5fd9781dc12048d24a1a6f1f5df038c6e95db328cd22964206", size = 3712829, upload-time = "2025-08-29T10:25:17.154Z" },- { url = "https://files.pythonhosted.org/packages/10/e3/b1726dbc1f03f757260fa21752e1921445b5bc350389a8314dd3338836db/tokenizers-0.22.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8337ca75d0731fc4860e6204cc24bb36a67d9736142aa06ed320943b50b1e7ed", size = 3408934, upload-time = "2025-08-29T10:25:18.76Z" },- { url = "https://files.pythonhosted.org/packages/d4/61/aeab3402c26874b74bb67a7f2c4b569dde29b51032c5384db592e7b216f4/tokenizers-0.22.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a89264e26f63c449d8cded9061adea7b5de53ba2346fc7e87311f7e4117c1cc8", size = 3345585, upload-time = "2025-08-29T10:25:22.08Z" },- { url = "https://files.pythonhosted.org/packages/bc/d3/498b4a8a8764cce0900af1add0f176ff24f475d4413d55b760b8cdf00893/tokenizers-0.22.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:790bad50a1b59d4c21592f9c3cf5e5cf9c3c7ce7e1a23a739f13e01fb1be377a", size = 9322986, upload-time = "2025-08-29T10:25:26.607Z" },- { url = "https://files.pythonhosted.org/packages/a2/62/92378eb1c2c565837ca3cb5f9569860d132ab9d195d7950c1ea2681dffd0/tokenizers-0.22.0-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:76cf6757c73a10ef10bf06fa937c0ec7393d90432f543f49adc8cab3fb6f26cb", size = 9276630, upload-time = "2025-08-29T10:25:28.349Z" },- { url = "https://files.pythonhosted.org/packages/eb/f0/342d80457aa1cda7654327460f69db0d69405af1e4c453f4dc6ca7c4a76e/tokenizers-0.22.0-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:1626cb186e143720c62c6c6b5371e62bbc10af60481388c0da89bc903f37ea0c", size = 9547175, upload-time = "2025-08-29T10:25:29.989Z" },- { url = "https://files.pythonhosted.org/packages/14/84/8aa9b4adfc4fbd09381e20a5bc6aa27040c9c09caa89988c01544e008d18/tokenizers-0.22.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:da589a61cbfea18ae267723d6b029b84598dc8ca78db9951d8f5beff72d8507c", size = 9692735, upload-time = "2025-08-29T10:25:32.089Z" },- { url = "https://files.pythonhosted.org/packages/bf/24/83ee2b1dc76bfe05c3142e7d0ccdfe69f0ad2f1ebf6c726cea7f0874c0d0/tokenizers-0.22.0-cp39-abi3-win32.whl", hash = "sha256:dbf9d6851bddae3e046fedfb166f47743c1c7bd11c640f0691dd35ef0bcad3be", size = 2471915, upload-time = "2025-08-29T10:25:36.411Z" },- { url = "https://files.pythonhosted.org/packages/d1/9b/0e0bf82214ee20231845b127aa4a8015936ad5a46779f30865d10e404167/tokenizers-0.22.0-cp39-abi3-win_amd64.whl", hash = "sha256:c78174859eeaee96021f248a56c801e36bfb6bd5b067f2e95aa82445ca324f00", size = 2680494, upload-time = "2025-08-29T10:25:35.14Z" },-]-[[package]]name = "tomli"version = "2.2.1"@@ -3010,27 +2955,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/00/c0/8f5d070730d7836adc9c9b6408dec68c6ced86b304a9b26a14df072a6e8c/traitlets-5.14.3-py3-none-any.whl", hash = "sha256:b74e89e397b1ed28cc831db7aea759ba6640cb3de13090ca145426688ff1ac4f", size = 85359, upload-time = "2024-04-19T11:11:46.763Z" },]-[[package]]-name = "transformers"-version = "4.57.3"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "filelock" },- { name = "huggingface-hub" },- { name = "numpy" },- { name = "packaging" },- { name = "pyyaml" },- { name = "regex" },- { name = "requests" },- { name = "safetensors" },- { name = "tokenizers" },- { name = "tqdm" },-]-sdist = { url = "https://files.pythonhosted.org/packages/dd/70/d42a739e8dfde3d92bb2fff5819cbf331fe9657323221e79415cd5eb65ee/transformers-4.57.3.tar.gz", hash = "sha256:df4945029aaddd7c09eec5cad851f30662f8bd1746721b34cc031d70c65afebc", size = 10139680, upload-time = "2025-11-25T15:51:30.139Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/6a/6b/2f416568b3c4c91c96e5a365d164f8a4a4a88030aa8ab4644181fdadce97/transformers-4.57.3-py3-none-any.whl", hash = "sha256:c77d353a4851b1880191603d36acb313411d3577f6e2897814f333841f7003f4", size = 11993463, upload-time = "2025-11-25T15:51:26.493Z" },-]-[[package]]name = "triton"version = "3.5.1"