Run this model with HF Jobs

Run CohereLabs/North-Micro-Vision-Instruct 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/CohereLabs/North-Micro-Vision-Instruct. 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/CohereLabs/North-Micro-Vision-Instruct 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/CohereLabs/North-Micro-Vision-Instruct. 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/CohereLabs/North-Micro-Vision-Instruct. 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.

Add {% generation %} markers for assistant-only loss masking

#2
by qgallouedec HF Staff - opened

Wraps the assistant branch of the chat template in {% generation %} / {% endgeneration %} so apply_chat_template(..., return_assistant_tokens_mask=True) yields a correct assistant-only loss mask (used e.g. by TRL's SFTConfig(assistant_only_loss=True)).

The <|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|> prompt cue stays outside the block (it is not generated by the model); the content and the trailing <|END_OF_TURN_TOKEN|> are inside, so the model is trained to stop.

Verified: rendering is byte-identical to the current template for both text and multimodal messages; the mask covers exactly the assistant content plus its end-of-turn token.

d-rau changed pull request status to merged

Sign up or log in to comment