Run this model with HF Jobs
Run cyankiwi/Qwen3-Omni-30B-A3B-Instruct-AWQ-8bit 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/cyankiwi/Qwen3-Omni-30B-A3B-Instruct-AWQ-8bit. 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/cyankiwi/Qwen3-Omni-30B-A3B-Instruct-AWQ-8bit 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 cyankiwi/Qwen3-Omni-30B-A3B-Instruct-AWQ-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cyankiwi/Qwen3-Omni-30B-A3B-Instruct-AWQ-8bit with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("cyankiwi/Qwen3-Omni-30B-A3B-Instruct-AWQ-8bit") model = AutoModelForMultimodalLM.from_pretrained("cyankiwi/Qwen3-Omni-30B-A3B-Instruct-AWQ-8bit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
size mismatch for weight_packed: copying a param with shape torch.Size([2048, 192]) from checkpoint, the shape in current model is torch.Size([2048, 96]).
RuntimeError Traceback (most recent call last)
Cell In[2], line 11
8 USE_TRANSFORMERS = True
9 TRANSFORMERS_USE_FLASH_ATTN2 = False
---> 11 model, processor = _load_model_processor()
13 USE_AUDIO_IN_VIDEO = True
Cell In[1], line 27, in _load_model_processor()
22 model = Qwen3OmniMoeForConditionalGeneration.from_pretrained(MODEL_PATH,
23 dtype='auto',
24 attn_implementation='flash_attention_2',
25 device_map="cuda:0")
26 else:
---> 27 model = Qwen3OmniMoeForConditionalGeneration.from_pretrained(MODEL_PATH, device_map="cuda:0", dtype='auto')
28 else:
29 from vllm import LLM
File ~/.local/lib/python3.12/site-packages/transformers/modeling_utils.py:277, in restore_default_dtype.._wrapper(*args, **kwargs)
275 old_dtype = torch.get_default_dtype()
276 try:
--> 277 return func(*args, **kwargs)
278 finally:
279 torch.set_default_dtype(old_dtype)
File ~/.local/lib/python3.12/site-packages/transformers/modeling_utils.py:5048, in PreTrainedModel.from_pretrained(cls, pretrained_model_name_or_path, config, cache_dir, ignore_mismatched_sizes, force_download, local_files_only, token, revision, use_safetensors, weights_only, *model_args, **kwargs)
5038 if dtype_orig is not None:
5039 torch.set_default_dtype(dtype_orig)
5041 (
5042 model,
5043 missing_keys,
5044 unexpected_keys,
5045 mismatched_keys,
5046 offload_index,
5047 error_msgs,
-> 5048 ) = cls._load_pretrained_model(
5049 model,
5050 state_dict,
5051 checkpoint_files,
5052 pretrained_model_name_or_path,
5053 ignore_mismatched_sizes=ignore_mismatched_sizes,
5054 sharded_metadata=sharded_metadata,
5055 device_map=device_map,
5056 disk_offload_folder=offload_folder,
5057 dtype=dtype,
5058 hf_quantizer=hf_quantizer,
5059 keep_in_fp32_regex=keep_in_fp32_regex,
5060 device_mesh=device_mesh,
5061 key_mapping=key_mapping,
5062 weights_only=weights_only,
5063 )
5064 # make sure token embedding weights are still tied if needed
5065 model.tie_weights()
File ~/.local/lib/python3.12/site-packages/transformers/modeling_utils.py:5468, in PreTrainedModel._load_pretrained_model(cls, model, state_dict, checkpoint_files, pretrained_model_name_or_path, ignore_mismatched_sizes, sharded_metadata, device_map, disk_offload_folder, dtype, hf_quantizer, keep_in_fp32_regex, device_mesh, key_mapping, weights_only)
5465 args_list = logging.tqdm(args_list, desc="Loading checkpoint shards")
5467 for args in args_list:
-> 5468 _error_msgs, disk_offload_index = load_shard_file(args)
5469 error_msgs += _error_msgs
5471 # Save offloaded index if needed
File ~/.local/lib/python3.12/site-packages/transformers/modeling_utils.py:843, in load_shard_file(args)
841 # Skip it with fsdp on ranks other than 0
842 elif not (is_fsdp_enabled() and not is_local_dist_rank_0() and not is_quantized):
--> 843 disk_offload_index = _load_state_dict_into_meta_model(
844 model,
845 state_dict,
846 shard_file,
847 reverse_key_renaming_mapping,
848 device_map=device_map,
849 disk_offload_folder=disk_offload_folder,
850 disk_offload_index=disk_offload_index,
851 hf_quantizer=hf_quantizer,
852 keep_in_fp32_regex=keep_in_fp32_regex,
853 device_mesh=device_mesh,
854 )
856 return error_msgs, disk_offload_index
File ~/.local/lib/python3.12/site-packages/torch/utils/_contextlib.py:120, in context_decorator..decorate_context(*args, **kwargs)
117 @functools.wraps(func)
118 def decorate_context(*args, **kwargs):
119 with ctx_factory():
--> 120 return func(*args, **kwargs)
File ~/.local/lib/python3.12/site-packages/transformers/modeling_utils.py:770, in _load_state_dict_into_meta_model(model, state_dict, shard_file, reverse_renaming_mapping, device_map, disk_offload_folder, disk_offload_index, hf_quantizer, keep_in_fp32_regex, device_mesh)
767 if is_fsdp_enabled():
768 param_device = "cpu" if is_local_dist_rank_0() else "meta"
--> 770 _load_parameter_into_model(model, param_name, param.to(param_device))
772 else:
773 # TODO naming is stupid it loads it as well
774 hf_quantizer.create_quantized_param(model, param, param_name, param_device)
File ~/.local/lib/python3.12/site-packages/transformers/modeling_utils.py:667, in _load_parameter_into_model(model, param_name, tensor)
665 module, param_type = get_module_from_name(model, param_name)
666 # This will check potential shape mismatch if skipped before
--> 667 module.load_state_dict({param_type: tensor}, strict=False, assign=True)
File ~/.local/lib/python3.12/site-packages/torch/nn/modules/module.py:2624, in Module.load_state_dict(self, state_dict, strict, assign)
2616 error_msgs.insert(
2617 0,
2618 "Missing key(s) in state_dict: {}. ".format(
2619 ", ".join(f'"{k}"' for k in missing_keys)
2620 ),
2621 )
2623 if len(error_msgs) > 0:
-> 2624 raise RuntimeError(
2625 "Error(s) in loading state_dict for {}:\n\t{}".format(
2626 self.class.name, "\n\t".join(error_msgs)
2627 )
2628 )
2629 return _IncompatibleKeys(missing_keys, unexpected_keys)
RuntimeError: Error(s) in loading state_dict for CompressedLinear:
size mismatch for weight_packed: copying a param with shape torch.Size([2048, 192]) from checkpoint, the shape in current model is torch.Size([2048, 96]).