Run this model with HF Jobs

Run thinkingmachines/Inkling-Small 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/thinkingmachines/Inkling-Small. 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/thinkingmachines/Inkling-Small 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/thinkingmachines/Inkling-Small. 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/thinkingmachines/Inkling-Small. 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.

Define eos_token and pad_token in the tokenizer config

#14
by albertvillanova HF Staff - opened

The tokenizer defines no eos_token and no pad_token, so both are None. Padding a batch fails, and code that reads tokenizer.eos_token to find the end of a turn breaks: for example, no TRL trainer can train this model (https://github.com/huggingface/trl/issues/8661).

This adds both to tokenizer_config.json and special_tokens_map.json:

  • eos_token: <|content_model_end_sampling|> (200006), the token that closes every assistant turn, already the eos_token_id in config.json.
  • pad_token: <|endoftext|> (199999), a special token the chat template never emits.

Checked with transformers 5.14.0 and 5.22.0: the tokenizer loads with eos_token_id=200006 and pad_token_id=199999, encodes text as before, renders the chat template identically (120 conversations: tool calls, tool results, reasoning, every generation-prompt and reasoning-effort setting), and pads batches. With it, TRL's SFT, DPO, KTO, GRPO and RLOO trainers train.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment