Run this model with HF Jobs
Run LiquidAI/d1-Omni-2B 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 to fine-tune https://huggingface.co/LiquidAI/d1-Omni-2B. 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/LiquidAI/d1-Omni-2B 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.
Instructions to use LiquidAI/d1-Omni-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LiquidAI/d1-Omni-2B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LiquidAI/d1-Omni-2B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Load the repo's own LFM3 classes on transformers 5.23
transformers 5.23.0 ships its own LFM3 classes. The model then picks them up instead of the copies in this repo and fails to load:
AttributeError: module 'transformers.models.lfm3.modeling_lfm3' has no attribute 'can_use_lfm3_conv'
The native_lfm3*.py files now always register the repo's copies, and runner.auto_processor takes the processor registered with them, since AutoProcessor finds transformers' class of the same name first. Nothing else changes.
Checked with the real weights: every example in the card gives exactly the same answers as the current code on 5.22.2, on both 5.22.2 and 5.23.0.
Tested on the real weights: every card example gives the same answers as before, on transformers 5.22.2 and 5.23.0.