Run this model with HF Jobs

Run openbmb/MiniCPM-o-2_6 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/openbmb/MiniCPM-o-2_6. 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/openbmb/MiniCPM-o-2_6 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.
Haziq-exe commited on
Commit
2bc0447
·
verified ·
1 Parent(s): 509805e

Add validation for minimum embed_dim in init_resampler

Browse files

Resampler is initialized with the hard-coded line `num_heads = embed_dim // 128`. When running with `config.hidden_size < 128`, it cryptically fails later on while giving an error message stating that `num_heads=0 while embed_dim={embed_dimension value}`

This change adds explicit validation with a helpful error message about the minimum embed_dim size so no more cryptic errors pop up and it is easier to debug.

Affects use cases:
- Model compression/distillation research
- Creating tiny test models for CI/CD

1 file changed +9 -1
modeling_minicpmo.py+9-1