Run this model with HF Jobs

Run inclusionAI/LLaDA2.1-mini 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/inclusionAI/LLaDA2.1-mini. 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/inclusionAI/LLaDA2.1-mini 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/inclusionAI/LLaDA2.1-mini. 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/inclusionAI/LLaDA2.1-mini. 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.

error report to run example

#3
by cloudyu - opened

test_llada21.py", line 7, in
model = AutoModelForCausalLM.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.12/site-packages/transformers/models/auto/auto_factory.py", line 367, in from_pretrained
return model_class.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.12/site-packages/transformers/modeling_utils.py", line 4021, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/.cache/huggingface/modules/transformers_modules/LLaDA2_dot_1_hyphen_mini/modeling_llada2_moe.py", line 962, in init
self.model = LLaDA2MoeModel(config)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/.cache/huggingface/modules/transformers_modules/LLaDA2_dot_1_hyphen_mini/modeling_llada2_moe.py", line 783, in init
self.rotary_emb = LLaDA2MoeRotaryEmbedding(config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/.cache/huggingface/modules/transformers_modules/LLaDA2_dot_1_hyphen_mini/modeling_llada2_moe.py", line 108, in init
self.rope_init_fn = ROPE_INIT_FUNCTIONS[self.rope_type]
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'default'

inclusionAI org

We recommend using transformers==4.57.1 for inference.

utdawn changed discussion status to closed

for transformers-5.1.0 how to run it?
it's not reasonable to use transformers==4.57.1 only.

inclusionAI org

Thank you for bringing this to our attention.

The error occurs because the default strategy was removed from ROPE_INIT_FUNCTIONS[self.rope_type] in transformers 5.1.0. We are aware of this breaking change and will update our modeling files shortly to ensure compatibility with the latest version.

utdawn changed discussion status to open

Sign up or log in to comment