Skip to content

BackendCompilerFailed: backend='inductor' raised: SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats #2230

Closed

Description

@Serjio42

Hello. I am encountering the same issue with python 3.10-3.12 conda environments.
My CUDA Toolkit is 12.6.
Ubuntu 24.04
While trying to reproduce the VLM training notebook I catch the following:
trainer_stats = trainer.train()
Error:

==((====))== Unsloth - 2x faster free finetuning | Num GPUs used = 1
\ /| Num examples = 3,000 | Num Epochs = 160 | Total steps = 29,900
O^O/ _/ \ Batch size per device = 4 | Gradient accumulation steps = 4
\ / Data Parallel GPUs = 1 | Total batch size (4 x 4 x 1) = 16
"-____-" Trainable parameters = 51,521,536/7,000,000,000 (0.74% trained)

BackendCompilerFailed Traceback (most recent call last)
Cell In[13], line 1
----> 1 trainer_stats = trainer.train()

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/transformers/trainer.py:2245, in Trainer.train(self, resume_from_checkpoint, trial, ignore_keys_for_eval, **kwargs)
2243 hf_hub_utils.enable_progress_bars()
2244 else:
-> 2245 return inner_training_loop(
2246 args=args,
2247 resume_from_checkpoint=resume_from_checkpoint,
2248 trial=trial,
2249 ignore_keys_for_eval=ignore_keys_for_eval,
2250 )

File :311, in _fast_inner_training_loop(self, batch_size, args, resume_from_checkpoint, trial, ignore_keys_for_eval)

File :31, in _unsloth_training_step(self, model, inputs, num_items_in_batch)

File ~/sergei/LLM_VLM/unsloth_compiled_cache/UnslothSFTTrainer.py:754, in _UnslothSFTTrainer.compute_loss(self, model, inputs, return_outputs, num_items_in_batch)
753 def compute_loss(self, model, inputs, return_outputs = False, num_items_in_batch = None):
--> 754 outputs = super().compute_loss(
755 model,
756 inputs,
757 return_outputs = return_outputs,
758 num_items_in_batch = num_items_in_batch,
759 )
760 return outputs

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/unsloth/models/_utils.py:1029, in _unsloth_pre_compute_loss(self, model, inputs, *args, **kwargs)
1023 logger.warning_once(
1024 f"Unsloth: Not an error, but {name} does not accept num_items_in_batch.\n"
1025 "Using gradient accumulation will be very slightly less accurate.\n"
1026 "Read more on gradient accumulation issues here: https://unsloth.ai/blog/gradient"
1027 )
1028 pass
-> 1029 outputs = self._old_compute_loss(model, inputs, *args, **kwargs)
1030 return outputs

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/transformers/trainer.py:3783, in Trainer.compute_loss(self, model, inputs, return_outputs, num_items_in_batch)
3781 loss_kwargs["num_items_in_batch"] = num_items_in_batch
3782 inputs = {**inputs, **loss_kwargs}
-> 3783 outputs = model(**inputs)
3784 # Save past state if it exists
3785 # TODO: this needs to be fixed and made cleaner later.
3786 if self.args.past_index >= 0:

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1739, in Module._wrapped_call_impl(self, *args, **kwargs)
1737 return self._compiled_call_impl(*args, **kwargs) # type: ignore[misc]
1738 else:
-> 1739 return self._call_impl(*args, **kwargs)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1750, in Module._call_impl(self, *args, **kwargs)
1745 # If we don't have any hooks, we want to skip the rest of the logic in
1746 # this function, and just call forward.
1747 if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
1748 or _global_backward_pre_hooks or _global_backward_hooks
1749 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1750 return forward_call(*args, **kwargs)
1752 result = None
1753 called_always_called_hooks = set()

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/accelerate/utils/operations.py:819, in convert_outputs_to_fp32..forward(*args, **kwargs)
818 def forward(*args, **kwargs):
--> 819 return model_forward(*args, **kwargs)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/accelerate/utils/operations.py:807, in ConvertOutputsToFp32.call(self, *args, **kwargs)
806 def call(self, *args, **kwargs):
--> 807 return convert_to_fp32(self.model_forward(*args, **kwargs))

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/amp/autocast_mode.py:44, in autocast_decorator..decorate_autocast(*args, **kwargs)
41 @functools.wraps(func)
42 def decorate_autocast(*args, **kwargs):
43 with autocast_instance:
---> 44 return func(*args, **kwargs)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/peft/peft_model.py:1756, in PeftModelForCausalLM.forward(self, input_ids, attention_mask, inputs_embeds, labels, output_attentions, output_hidden_states, return_dict, task_ids, **kwargs)
1754 with self._enable_peft_forward_hooks(**kwargs):
1755 kwargs = {k: v for k, v in kwargs.items() if k not in self.special_peft_forward_args}
-> 1756 return self.base_model(
1757 input_ids=input_ids,
1758 attention_mask=attention_mask,
1759 inputs_embeds=inputs_embeds,
1760 labels=labels,
1761 output_attentions=output_attentions,
1762 output_hidden_states=output_hidden_states,
1763 return_dict=return_dict,
1764 **kwargs,
1765 )
1767 batch_size = _get_batch_size(input_ids, inputs_embeds)
1768 if attention_mask is not None:
1769 # concat prompt attention mask

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1739, in Module._wrapped_call_impl(self, *args, **kwargs)
1737 return self._compiled_call_impl(*args, **kwargs) # type: ignore[misc]
1738 else:
-> 1739 return self._call_impl(*args, **kwargs)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1845, in Module._call_impl(self, *args, **kwargs)
1842 return inner()
1844 try:
-> 1845 return inner()
1846 except Exception:
1847 # run always called hooks if they have not already been run
1848 # For now only forward hooks have the always_call option but perhaps
1849 # this functionality should be added to full backward hooks as well.
1850 for hook_id, hook in _global_forward_hooks.items():

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1793, in Module._call_impl..inner()
1790 bw_hook = BackwardHook(self, full_backward_hooks, backward_pre_hooks)
1791 args = bw_hook.setup_input_hook(args)
-> 1793 result = forward_call(*args, **kwargs)
1794 if _global_forward_hooks or self._forward_hooks:
1795 for hook_id, hook in (
1796 *_global_forward_hooks.items(),
1797 *self._forward_hooks.items(),
1798 ):
1799 # mark that always called hook is run

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/peft/tuners/tuners_utils.py:193, in BaseTuner.forward(self, *args, **kwargs)
192 def forward(self, *args: Any, **kwargs: Any):
--> 193 return self.model.forward(*args, **kwargs)

File ~/sergei/LLM_VLM/unsloth_compiled_cache/unsloth_compiled_module_qwen2_5_vl.py:1386, in Qwen2_5_VLForConditionalGeneration.forward(self, input_ids, attention_mask, position_ids, past_key_values, inputs_embeds, labels, use_cache, output_attentions, output_hidden_states, return_dict, pixel_values, pixel_values_videos, image_grid_thw, video_grid_thw, rope_deltas, cache_position, second_per_grid_ts, **loss_kwargs)
1366 def forward(
1367 self,
1368 input_ids: torch.LongTensor = None,
(...)
1384 second_per_grid_ts: Optional[torch.Tensor] = None,**loss_kwargs,
1385 ) -> Union[Tuple, Qwen2_5_VLCausalLMOutputWithPast]:
-> 1386 return Qwen2_5_VLForConditionalGeneration_forward(self, input_ids, attention_mask, position_ids, past_key_values, inputs_embeds, labels, use_cache, output_attentions, output_hidden_states, return_dict, pixel_values, pixel_values_videos, image_grid_thw, video_grid_thw, rope_deltas, cache_position, second_per_grid_ts, **loss_kwargs)

File ~/sergei/LLM_VLM/unsloth_compiled_cache/unsloth_compiled_module_qwen2_5_vl.py:943, in Qwen2_5_VLForConditionalGeneration_forward(self, input_ids, attention_mask, position_ids, past_key_values, inputs_embeds, labels, use_cache, output_attentions, output_hidden_states, return_dict, pixel_values, pixel_values_videos, image_grid_thw, video_grid_thw, rope_deltas, cache_position, second_per_grid_ts, **loss_kwargs)
941 if pixel_values is not None:
942 pixel_values = pixel_values.type(self.visual.dtype)
--> 943 image_embeds = self.visual(pixel_values, grid_thw=image_grid_thw)
944 n_image_tokens = (input_ids == self.config.image_token_id).sum().item()
945 n_image_features = image_embeds.shape[0]

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1739, in Module._wrapped_call_impl(self, *args, **kwargs)
1737 return self._compiled_call_impl(*args, **kwargs) # type: ignore[misc]
1738 else:
-> 1739 return self._call_impl(*args, **kwargs)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1750, in Module._call_impl(self, *args, **kwargs)
1745 # If we don't have any hooks, we want to skip the rest of the logic in
1746 # this function, and just call forward.
1747 if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
1748 or _global_backward_pre_hooks or _global_backward_hooks
1749 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1750 return forward_call(*args, **kwargs)
1752 result = None
1753 called_always_called_hooks = set()

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/transformers/models/qwen2_5_vl/modeling_qwen2_5_vl.py:553, in Qwen2_5_VisionTransformerPretrainedModel.forward(self, hidden_states, grid_thw)
551 cu_seqlens_now = cu_window_seqlens
552 if self.gradient_checkpointing and self.training:
--> 553 hidden_states = self._gradient_checkpointing_func(
554 blk.call, hidden_states, cu_seqlens_now, None, position_embeddings
555 )
556 else:
557 hidden_states = blk(hidden_states, cu_seqlens=cu_seqlens_now, position_embeddings=position_embeddings)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_compile.py:32, in _disable_dynamo..inner(*args, **kwargs)
29 disable_fn = torch._dynamo.disable(fn, recursive)
30 fn.__dynamo_disable = disable_fn
---> 32 return disable_fn(*args, **kwargs)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py:745, in DisableContext.call.._fn(*args, **kwargs)
741 prior_skip_guard_eval_unsafe = set_skip_guard_eval_unsafe(
742 _is_skip_guard_eval_unsafe_stance()
743 )
744 try:
--> 745 return fn(*args, **kwargs)
746 finally:
747 _maybe_set_eval_frame(prior)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/utils/checkpoint.py:489, in checkpoint(function, use_reentrant, context_fn, determinism_check, debug, *args, **kwargs)
484 if context_fn is not noop_context_fn or debug is not False:
485 raise ValueError(
486 "Passing context_fn or debug is only supported when "
487 "use_reentrant=False."
488 )
--> 489 return CheckpointFunction.apply(function, preserve, *args)
490 else:
491 gen = _checkpoint_without_reentrant_generator(
492 function, preserve, context_fn, determinism_check, debug, *args, **kwargs
493 )

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/autograd/function.py:575, in Function.apply(cls, *args, **kwargs)
572 if not torch._C._are_functorch_transforms_active():
573 # See NOTE: [functorch vjp and autograd interaction]
574 args = _functorch.utils.unwrap_dead_wrappers(args)
--> 575 return super().apply(*args, **kwargs) # type: ignore[misc]
577 if not is_setup_ctx_defined:
578 raise RuntimeError(
579 "In order to use an autograd.Function with functorch transforms "
580 "(vmap, grad, jvp, jacrev, ...), it must override the setup_context "
581 "staticmethod. For more details, please see "
582 "https://pytorch.org/docs/main/notes/extending.func.html"
583 )

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/unsloth_zoo/gradient_checkpointing.py:463, in UnslothCheckpointFunction.forward(ctx, run_function, preserve_rng_state, *args)
460 if ctx._requires_gradient: ctx.save_for_backward(*tensor_inputs)
462 with torch.no_grad():
--> 463 outputs = run_function(*args)
465 if use_gpu_buffer: MAIN_STREAM.wait_stream(EXTRA_STREAM)
466 return outputs

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1739, in Module._wrapped_call_impl(self, *args, **kwargs)
1737 return self._compiled_call_impl(*args, **kwargs) # type: ignore[misc]
1738 else:
-> 1739 return self._call_impl(*args, **kwargs)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1750, in Module._call_impl(self, *args, **kwargs)
1745 # If we don't have any hooks, we want to skip the rest of the logic in
1746 # this function, and just call forward.
1747 if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
1748 or _global_backward_pre_hooks or _global_backward_hooks
1749 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1750 return forward_call(*args, **kwargs)
1752 result = None
1753 called_always_called_hooks = set()

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/transformers/models/qwen2_5_vl/modeling_qwen2_5_vl.py:351, in Qwen2_5_VLVisionBlock.forward(self, hidden_states, cu_seqlens, rotary_pos_emb, position_embeddings)
343 def forward(
344 self,
345 hidden_states: torch.Tensor,
(...)
348 position_embeddings: Optional[Tuple[torch.Tensor, torch.Tensor]] = None,
349 ) -> torch.Tensor:
350 hidden_states = hidden_states + self.attn(
--> 351 self.norm1(hidden_states),
352 cu_seqlens=cu_seqlens,
353 rotary_pos_emb=rotary_pos_emb,
354 position_embeddings=position_embeddings,
355 )
356 hidden_states = hidden_states + self.mlp(self.norm2(hidden_states))
357 return hidden_states

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1739, in Module._wrapped_call_impl(self, *args, **kwargs)
1737 return self._compiled_call_impl(*args, **kwargs) # type: ignore[misc]
1738 else:
-> 1739 return self._call_impl(*args, **kwargs)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/nn/modules/module.py:1750, in Module._call_impl(self, *args, **kwargs)
1745 # If we don't have any hooks, we want to skip the rest of the logic in
1746 # this function, and just call forward.
1747 if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
1748 or _global_backward_pre_hooks or _global_backward_hooks
1749 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1750 return forward_call(*args, **kwargs)
1752 result = None
1753 called_always_called_hooks = set()

File ~/sergei/LLM_VLM/unsloth_compiled_cache/unsloth_compiled_module_qwen2_5_vl.py:173, in Qwen2RMSNorm.forward(self, hidden_states)
172 def forward(self, hidden_states):
--> 173 return Qwen2RMSNorm_forward(self, hidden_states)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py:574, in _TorchDynamoContext.call.._fn(*args, **kwargs)
569 saved_dynamic_layer_stack_depth = (
570 torch._C._functorch.get_dynamic_layer_stack_depth()
571 )
573 try:
--> 574 return fn(*args, **kwargs)
575 finally:
576 # Restore the dynamic layer stack depth if necessary.
577 torch._C._functorch.pop_dynamic_layer_stack_and_undo_to_depth(
578 saved_dynamic_layer_stack_depth
579 )

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py:1380, in CatchErrorsWrapper.call(self, frame, cache_entry, frame_state)
1374 return hijacked_callback(
1375 frame, cache_entry, self.hooks, frame_state
1376 )
1378 with compile_lock, _disable_current_modes():
1379 # skip=1: skip this frame
-> 1380 return self._torchdynamo_orig_callable(
1381 frame, cache_entry, self.hooks, frame_state, skip=1
1382 )

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py:547, in ConvertFrameAssert.call(self, frame, cache_entry, hooks, frame_state, skip)
544 dynamo_tls.traced_frame_infos.append(info)
546 with compile_context(CompileContext(compile_id)):
--> 547 return _compile(
548 frame.f_code,
549 frame.f_globals,
550 frame.f_locals,
551 frame.f_builtins,
552 frame.closure,
553 self._torchdynamo_orig_callable,
554 self._one_graph,
555 self._export,
556 self._export_constraints,
557 hooks,
558 cache_entry,
559 cache_size,
560 frame,
561 frame_state=frame_state,
562 compile_id=compile_id,
563 skip=skip + 1,
564 )

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py:986, in _compile(code, globals, locals, builtins, closure, compiler_fn, one_graph, export, export_constraints, hooks, cache_entry, cache_size, frame, frame_state, compile_id, skip)
984 guarded_code = None
985 try:
--> 986 guarded_code = compile_inner(code, one_graph, hooks, transform)
988 # NB: We only put_code_state in success case. Success case here
989 # does include graph breaks; specifically, if a graph break still
990 # resulted in a partially compiled graph, we WILL return here. An
(...)
995 # to upload for graph break though, because this can prevent
996 # extra graph break compilations.)
997 put_code_state()

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py:715, in _compile..compile_inner(code, one_graph, hooks, transform)
713 stack.enter_context(torch._dynamo.callback_handler.install_callbacks())
714 stack.enter_context(CompileTimeInstructionCounter.record())
--> 715 return _compile_inner(code, one_graph, hooks, transform)
717 return None

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_utils_internal.py:95, in compile_time_strobelight_meta..compile_time_strobelight_meta_inner..wrapper_function(*args, **kwargs)
92 kwargs["skip"] = skip + 1
94 if not StrobelightCompileTimeProfiler.enabled:
---> 95 return function(*args, **kwargs)
97 return StrobelightCompileTimeProfiler.profile_compile_time(
98 function, phase_name, *args, **kwargs
99 )

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py:750, in _compile.._compile_inner(code, one_graph, hooks, transform)
748 CompileContext.get().attempt = attempt
749 try:
--> 750 out_code = transform_code_object(code, transform)
751 break
752 except exc.RestartAnalysis as e:

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/bytecode_transformation.py:1361, in transform_code_object(code, transformations, safe)
1358 instructions = cleaned_instructions(code, safe)
1359 propagate_line_nums(instructions)
-> 1361 transformations(instructions, code_options)
1362 return clean_and_assemble_instructions(instructions, keys, code_options)[1]

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py:231, in preserve_global_state.._fn(*args, **kwargs)
229 exit_stack.enter_context(torch_function_mode_stack_state_mgr)
230 try:
--> 231 return fn(*args, **kwargs)
232 finally:
233 cleanup.close()

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py:662, in _compile..transform(instructions, code_options)
660 try:
661 with tracing(tracer.output.tracing_context), tracer.set_current_tx():
--> 662 tracer.run()
663 except exc.UnspecializeRestartAnalysis:
664 speculation_log.clear()

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py:2868, in InstructionTranslator.run(self)
2867 def run(self):
-> 2868 super().run()

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py:1052, in InstructionTranslatorBase.run(self)
1050 try:
1051 self.output.push_tx(self)
-> 1052 while self.step():
1053 pass
1054 except TensorifyScalarRestartAnalysis:

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py:962, in InstructionTranslatorBase.step(self)
959 self.update_block_stack(inst)
961 try:
--> 962 self.dispatch_table[inst.opcode](self, inst)
963 return not self.output.should_exit
964 except TensorifyScalarRestartAnalysis:

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py:3048, in InstructionTranslator.RETURN_VALUE(self, inst)
3047 def RETURN_VALUE(self, inst):
-> 3048 self._return(inst)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/symbolic_convert.py:3033, in InstructionTranslator._return(self, inst)
3028 _step_logger()(
3029 logging.INFO,
3030 f"torchdynamo done tracing {self.f_code.co_name} ({inst.opname})",
3031 )
3032 log.debug("%s triggered compile", inst.opname)
-> 3033 self.output.compile_subgraph(
3034 self,
3035 reason=GraphCompileReason(
3036 "return_value", [self.frame_summary()], graph_break=False
3037 ),
3038 )
3039 return_inst = (
3040 create_instruction("RETURN_VALUE")
3041 if inst.opname == "RETURN_VALUE"
3042 else create_instruction("RETURN_CONST", argval=inst.argval)
3043 )
3044 self.output.add_output_instructions([return_inst])

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/output_graph.py:1101, in OutputGraph.compile_subgraph(self, tx, partial_convert, reason)
1098 append_prefix_insts()
1099 # optimization to generate better code in a common case
1100 self.add_output_instructions(
-> 1101 self.compile_and_call_fx_graph(
1102 tx, list(reversed(stack_values)), root, output_replacements
1103 )
1104 + [create_instruction("UNPACK_SEQUENCE", arg=len(stack_values))]
1105 )
1106 # restore all the live local vars
1107 self.add_output_instructions(
1108 [
1109 PyCodegen(tx, overridden_sources=overridden_sources).create_store(
(...)
1113 ]
1114 )

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/output_graph.py:1382, in OutputGraph.compile_and_call_fx_graph(self, tx, rv, root, replaced_outputs)
1379 self.tracing_context.fake_mode = backend_fake_mode
1381 with self.restore_global_state():
-> 1382 compiled_fn = self.call_user_compiler(gm)
1384 from torch.fx._lazy_graph_module import _LazyGraphModule
1386 if isinstance(compiled_fn, _LazyGraphModule) or (
1387 isinstance(getattr(compiled_fn, "self", None), _LazyGraphModule)
1388 and compiled_fn.name == "_lazy_forward" # type: ignore[attr-defined]
(...)
1392 # this is a _LazyGraphModule. This makes it easier for dynamo to
1393 # optimize a _LazyGraphModule.

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/output_graph.py:1432, in OutputGraph.call_user_compiler(self, gm)
1425 def call_user_compiler(self, gm: fx.GraphModule) -> CompiledFn:
1426 with dynamo_timed(
1427 "OutputGraph.call_user_compiler",
1428 phase_name="backend_compile",
1429 log_pt2_compile_event=True,
1430 dynamo_compile_column_us="aot_autograd_cumulative_compile_time_us",
1431 ):
-> 1432 return self._call_user_compiler(gm)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/output_graph.py:1483, in OutputGraph._call_user_compiler(self, gm)
1481 raise e
1482 except Exception as e:
-> 1483 raise BackendCompilerFailed(self.compiler_fn, e).with_traceback(
1484 e.traceback
1485 ) from None
1487 signpost_event(
1488 "dynamo",
1489 "OutputGraph.call_user_compiler",
(...)
1495 },
1496 )
1498 return compiled_fn

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/output_graph.py:1462, in OutputGraph._call_user_compiler(self, gm)
1460 if config.verify_correctness:
1461 compiler_fn = WrapperBackend(compiler_fn)
-> 1462 compiled_fn = compiler_fn(gm, self.example_inputs())
1463 _step_logger()(logging.INFO, f"done compiler function {name}")
1464 assert callable(compiled_fn), "compiler_fn did not return callable"

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/repro/after_dynamo.py:130, in WrapBackendDebug.call(self, gm, example_inputs, **kwargs)
128 raise
129 else:
--> 130 compiled_gm = compiler_fn(gm, example_inputs)
132 return compiled_gm

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/repro/after_dynamo.py:130, in WrapBackendDebug.call(self, gm, example_inputs, **kwargs)
128 raise
129 else:
--> 130 compiled_gm = compiler_fn(gm, example_inputs)
132 return compiled_gm

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/init.py:2340, in TorchCompileInductorWrapper.call(self, model, inputs_)
2337 def call(self, model_, inputs_):
2338 from torch.inductor.compile_fx import compile_fx
-> 2340 return compile_fx(model
, inputs_, config_patches=self.config)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/compile_fx.py:1552, in compile_fx(model_, example_inputs_, inner_compile, config_patches, decompositions)
1550 if config_patches:
1551 with config.patch(config_patches):
-> 1552 return compile_fx(
1553 model_,
1554 example_inputs_,
1555 # need extra layer of patching as backwards is compiled out of scope
1556 inner_compile=config.patch(config_patches)(inner_compile),
1557 decompositions=decompositions,
1558 )
1560 # TODO: This probably shouldn't be a recursive call
1561 if config.cpp_wrapper:

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/compile_fx.py:1863, in compile_fx(model_, example_inputs_, inner_compile, config_patches, decompositions)
1856 return inference_compiler(unlifted_gm, example_inputs_)
1858 with V.set_fake_mode(fake_mode), torch.guards.tracing(
1859 tracing_context
1860 ), compiled_autograd.disable(), functorch_config.patch(
1861 unlift_effect_tokens=True
1862 ):
-> 1863 return aot_autograd(
1864 fw_compiler=fw_compiler,
1865 bw_compiler=bw_compiler,
1866 inference_compiler=inference_compiler,
1867 decompositions=decompositions,
1868 partition_fn=partition_fn,
1869 keep_inference_input_mutations=True,
1870 cudagraphs=cudagraphs,
1871 )(model
, example_inputs
)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/backends/common.py:83, in AotAutograd.call(self, gm, example_inputs, **kwargs)
80 try:
81 # NB: NOT cloned!
82 with enable_aot_logging(), patch_config:
---> 83 cg = aot_module_simplified(gm, example_inputs, **self.kwargs)
84 counters["aot_autograd"]["ok"] += 1
85 return disable(cg)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py:1155, in aot_module_simplified(mod, args, fw_compiler, bw_compiler, partition_fn, decompositions, keep_inference_input_mutations, inference_compiler, cudagraphs)
1145 compiled_fn = AOTAutogradCache.load(
1146 dispatch_and_compile,
1147 mod,
(...)
1152 remote,
1153 )
1154 else:
-> 1155 compiled_fn = dispatch_and_compile()
1157 if isinstance(mod, torch._dynamo.utils.GmWrapper):
1158 # This function is called by the flatten_graph_inputs wrapper, which boxes
1159 # the inputs so that they can be freed before the end of this scope.
1160 # For overhead reasons, this is not the default wrapper, see comment:
1161 # https://github.com/pytorch/pytorch/pull/122535/files#r1560096481
1162 def boxed_forward(runtime_args: List[Any]):

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py:1131, in aot_module_simplified..dispatch_and_compile()
1129 functional_call = create_functional_call(mod, params_spec, params_len)
1130 with compiled_autograd._disable():
-> 1131 compiled_fn, _ = create_aot_dispatcher_function(
1132 functional_call,
1133 fake_flat_args,
1134 aot_config,
1135 fake_mode,
1136 shape_env,
1137 )
1138 return compiled_fn

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py:580, in create_aot_dispatcher_function(flat_fn, fake_flat_args, aot_config, fake_mode, shape_env)
572 def create_aot_dispatcher_function(
573 flat_fn,
574 fake_flat_args: FakifiedFlatArgs,
(...)
577 shape_env: Optional[ShapeEnv],
578 ) -> Tuple[Callable, ViewAndMutationMeta]:
579 with dynamo_timed("create_aot_dispatcher_function", log_pt2_compile_event=True):
--> 580 return _create_aot_dispatcher_function(
581 flat_fn, fake_flat_args, aot_config, fake_mode, shape_env
582 )

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py:830, in _create_aot_dispatcher_function(flat_fn, fake_flat_args, aot_config, fake_mode, shape_env)
826 return aot_dispatch_base
828 compiler_fn = choose_dispatcher(needs_autograd, aot_config)
--> 830 compiled_fn, fw_metadata = compiler_fn(
831 flat_fn,
832 _dup_fake_script_obj(fake_flat_args),
833 aot_config,
834 fw_metadata=fw_metadata,
835 )
836 return compiled_fn, fw_metadata

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/jit_compile_runtime_wrappers.py:203, in aot_dispatch_base(flat_fn, flat_args, aot_config, fw_metadata)
201 assert isinstance(fw_module, GraphModule)
202 tensorify_python_scalars(fw_module, fake_mode.shape_env, fake_mode)
--> 203 compiled_fw = compiler(fw_module, updated_flat_args)
205 if fakified_out_wrapper.needs_post_compile:
206 fakified_out_wrapper.set_fwd_output_strides(fwd_output_strides)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py:489, in SerializableAOTDispatchCompiler.call(self, gm, example_inputs)
484 def call(
485 self,
486 gm: torch.fx.GraphModule,
487 example_inputs: Sequence[InputType],
488 ) -> OutputCode:
--> 489 return self.compiler_fn(gm, example_inputs)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/compile_fx.py:1741, in compile_fx..fw_compiler_base(gm, example_inputs, is_inference)
1738 else:
1739 model_outputs_node.meta["user_visible_output_idxs"] = []
-> 1741 return inner_compile(
1742 gm,
1743 example_inputs,
1744 static_input_idxs=get_static_input_idxs(fixed),
1745 cudagraphs=cudagraphs,
1746 graph_id=graph_id,
1747 is_inference=is_inference,
1748 boxed_forward_device_index=forward_device,
1749 )

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/contextlib.py:79, in ContextDecorator.call..inner(*args, **kwds)
76 @wraps(func)
77 def inner(*args, **kwds):
78 with self._recreate_cm():
---> 79 return func(*args, **kwds)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/compile_fx.py:569, in compile_fx_inner(gm, example_inputs, **kwargs)
562 stack.enter_context(DebugContext())
564 get_chromium_event_logger().add_event_data(
565 "inductor_compile",
566 is_backward=kwargs["is_backward"],
567 )
--> 569 return wrap_compiler_debug(_compile_fx_inner, compiler_name="inductor")(
570 gm,
571 example_inputs,
572 **kwargs,
573 )

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_dynamo/repro/after_aot.py:102, in wrap_compiler_debug..debug_wrapper(gm, example_inputs, **kwargs)
97 assert config.repro_after in ("dynamo", "aot", None)
99 try:
100 # Call the compiler_fn - which is either aot_autograd or inductor
101 # with fake inputs
--> 102 inner_compiled_fn = compiler_fn(gm, example_inputs)
103 except Exception as e:
104 # TODO: Failures here are troublesome because no real inputs,
105 # need a different serialization strategy
106 if config.repro_after == "aot":

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/compile_fx.py:685, in _compile_fx_inner(gm, example_inputs, **graph_kwargs)
683 TritonBundler.begin_compile()
684 try:
--> 685 mb_compiled_graph = fx_codegen_and_compile(
686 gm, example_inputs, inputs_to_check, **graph_kwargs
687 )
688 assert mb_compiled_graph is not None
689 mb_compiled_graph._time_taken_ns = time.time_ns() - start_time

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/compile_fx.py:1129, in fx_codegen_and_compile(gm, example_inputs, inputs_to_check, **graph_kwargs)
1119 def fx_codegen_and_compile(
1120 gm: GraphModule,
1121 example_inputs: Sequence[InputType],
(...)
1125 **graph_kwargs: Unpack[_CompileFxKwargs],
1126 ) -> OutputCode:
1127 scheme: FxCompile = _InProcessFxCompile()
-> 1129 return scheme.codegen_and_compile(gm, example_inputs, inputs_to_check, graph_kwargs)

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/compile_fx.py:1044, in _InProcessFxCompile.codegen_and_compile(self, gm, example_inputs, inputs_to_check, graph_kwargs)
1036 compiled_fn = AotCodeCompiler.compile(
1037 graph,
1038 code,
(...)
1041 additional_files=additional_files,
1042 )
1043 else:
-> 1044 compiled_fn = graph.compile_to_module().call
1046 num_bytes, nodes_num_elem, node_runtimes = graph.count_bytes()
1047 metrics.num_bytes_accessed += num_bytes

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/graph.py:2027, in GraphLowering.compile_to_module(self)
2020 def compile_to_module(self) -> ModuleType:
2021 with dynamo_timed(
2022 "GraphLowering.compile_to_module",
2023 phase_name="code_gen",
2024 log_pt2_compile_event=True,
2025 dynamo_compile_column_us="inductor_code_gen_cumulative_compile_time_us",
2026 ):
-> 2027 return self._compile_to_module()

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/graph.py:2068, in GraphLowering._compile_to_module(self)
2062 trace_structured(
2063 "inductor_output_code",
2064 lambda: {"filename": path},
2065 payload_fn=lambda: code,
2066 )
2067 with dynamo_timed("PyCodeCache.load_by_key_path", log_pt2_compile_event=True):
-> 2068 mod = PyCodeCache.load_by_key_path(
2069 key,
2070 path,
2071 linemap=linemap, # type: ignore[arg-type]
2072 attrs={**self.constants, **self.torchbind_constants},
2073 )
2074 self.cache_key = key
2075 self.cache_path = path

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/codecache.py:2759, in PyCodeCache.load_by_key_path(cls, key, path, linemap, attrs)
2756 if linemap is None:
2757 linemap = []
-> 2759 mod = _reload_python_module(key, path)
2761 # unzip into separate lines/nodes lists
2762 cls.linemaps[path] = list(zip(*linemap))

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/runtime/compile_tasks.py:45, in _reload_python_module(key, path)
43 mod.file = path
44 mod.key = key # type: ignore[attr-defined]
---> 45 exec(code, mod.dict, mod.dict)
46 sys.modules[mod.name] = mod
47 return mod

File /tmp/torchinductor_user/e6/ce6rs6kebawnhyyaupx6nt57dpgisqr3rideoxnuubx46ndqeibz.py:118
42 # kernel path: /tmp/torchinductor_user/a5/ca566jb3srxuaqwr6rm2qno2o6t2mteyq3y5atsecgcjoqa6vfhu.py
43 # Topologically Sorted Source Nodes: [hidden_states, pow_1, variance, add, rsqrt, hidden_states_1, to_1, mul_1], Original ATen: [aten._to_copy, aten.pow, aten.mean, aten.add, aten.rsqrt, aten.mul]
44 # Source node to ATen node mapping:
(...)
60 # %convert_element_type_1 : [num_users=1] = call_function[target=torch.ops.prims.convert_element_type.default](args = (%mul_7, torch.bfloat16), kwargs = {})
61 # %mul_12 : [num_users=1] = call_function[target=torch.ops.aten.mul.Tensor](args = (%arg2_1, %convert_element_type_1), kwargs = {})
62 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_0 = async_compile.triton('triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_0', '''
63 import triton
64 import triton.language as tl
(...)
114 tl.store(out_ptr1 + (r1 + 1280*x0), tmp16, rmask & xmask)
115 ''', device_str='cuda')
--> 118 async_compile.wait(globals())
119 del async_compile
121 def call(args):

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/async_compile.py:305, in AsyncCompile.wait(self, scope)
303 if isinstance(result, (Future, CodeCacheFuture)):
304 try:
--> 305 scope[key] = result.result()
306 except BrokenProcessPool as e:
307 raise RuntimeError(
308 "A compilation subprocess exited unexpectedly. This "
309 "is likely due to a crash. To facilitate debugging, "
310 "you can re-run with TORCHINDUCTOR_COMPILE_THREADS=1 "
311 "to cause compilation to occur in the main process."
312 ) from e

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/codecache.py:3244, in TritonFuture.result(self)
3242 assert result is None
3243 self.future = None
-> 3244 self.kernel.precompile()
3245 return self.kernel

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/runtime/triton_heuristics.py:293, in CachingAutotuner.precompile(self, warm_cache_only)
291 for c in self.configs:
292 try:
--> 293 compiled_binary, launcher = self._precompile_config(
294 c, warm_cache_only
295 )
296 except (OutOfResources, PTXASError) as e:
297 if len(self.configs) == 1:
298 # There are no valid Triton configs

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/torch/_inductor/runtime/triton_heuristics.py:520, in CachingAutotuner.precompile_config(self, cfg, warm_cache_only)
513 log.exception(
514 "Triton compilation failed: %s\n%s\nmetadata: %s",
515 self.inductor_meta.get("kernel_name", "triton
"),
516 self.fn.src,
517 compile_meta,
518 )
519 raise
--> 520 binary._init_handles()
522 """
523 pytorch/pytorch#115344
524
(...)
534 3. It isn't in the compile_meta signature
535 """
536 known_constants = {
537 arg for i, arg in enumerate(self.fn.arg_names) if i in self.fn.constexprs
538 }

File ~/miniconda3/envs/python3.10-VLMs/lib/python3.10/site-packages/triton/compiler/compiler.py:390, in CompiledKernel._init_handles(self)
388 raise OutOfResources(self.metadata.shared, max_shared, "shared memory")
389 # TODO: n_regs, n_spills should be metadata generated when calling ptxas
--> 390 self.module, self.function, self.n_regs, self.n_spills = driver.active.utils.load_binary(
391 self.name, self.kernel, self.metadata.shared, device)

BackendCompilerFailed: backend='inductor' raised:
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information

Activity

  1. Serjio42 commented on Mar 28, 2025

    @Serjio42
    Author

    I also tried the newest version of everything by running such command in my conda env:
    pip install --upgrade --force-reinstall --no-cache-dir unsloth unsloth_zoo
    But still the same issue.

    There is also a log from model creation:

    🦥 Unsloth: Will patch your computer to enable 2x faster free finetuning.
    🦥 Unsloth Zoo will now patch everything to make training faster!
    ==((====))== Unsloth 2025.3.19: Fast Qwen2_Vl patching. Transformers: 4.50.3.
    \ /| NVIDIA GeForce RTX 4090. Num GPUs = 2. Max memory: 23.525 GB. Platform: Linux.
    O^O/ _/ \ Torch: 2.6.0+cu124. CUDA: 8.9. CUDA Toolkit: 12.4. Triton: 3.2.0
    \ / Bfloat16 = TRUE. FA [Xformers = 0.0.29.post3. FA2 = False]
    "-____-" Free license: http://github.com/unslothai/unsloth
    Unsloth: Fast downloading is enabled - ignore downloading bars which are red colored!

    Help me please to figure out what is wrong.

  2. Serjio42 commented on Mar 31, 2025

    @Serjio42
    Author

    I have found workaround with downgrading to torch 2.5.1+cu124 and triton 3.1.0.

  3. jleeleee commented on Apr 28, 2025

    @jleeleee

    I'm getting the same error from torch 2.6

  4. msciancalepore98 commented on May 16, 2025

    @msciancalepore98

    I have this, pretty similar (Qwen 2 and 2.5) . i am just running the notebook as-is.

    
    ==((====))==  Unsloth 2025.5.4: Qwen patching. Transformers: 4.51.3.
       \\   /|    Tesla T4. Num GPUs = 1. Max memory: 14.741 GB. Platform: Linux.
    O^O/ \_/ \    Torch: 2.6.0+cu124. CUDA: 7.5. CUDA Toolkit: 12.4. Triton: 3.2.0
    \        /    Bfloat16 = FALSE. FA [Xformers = 0.0.29.post3. FA2 = False]
     "-____-"     Free license: http://github.com/unslothai/unsloth
    
    C0516 10:09:38.174000 329 torch/_inductor/scheduler.py:1059] [9/5] Error in codegen for ComputedBuffer(name='buf2', layout=FixedLayout('cuda:0', torch.float16, size=[3, s1, s2, 128], stride=[128*s1*s2, 128*s2, 128, 1]), data=Pointwise(device=device(type='cuda', index=0), dtype=torch.float16, inner_fn=<function make_pointwise.<locals>.inner.<locals>.inner_fn at 0x7ab4561493a0>, ranges=[3, s1, s2, 128]))
    ...
    BackendCompilerFailed: backend='inductor' raised:
    AssertionError: 
    Invalid match!
    Index: 64*s2*((yindex//s2)) + (ModularIndexing(yindex, 1, s2))
    Matched expression: ps1*((yindex//s2)) + (ModularIndexing(yindex, 1, s2))
    
    
    Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information
    

    edit: well, I am having this error also with llama 3.2 vision as well.. yesterday it was working all fine tho ...

  5. AldawsariNLP commented on May 16, 2025

    @AldawsariNLP

    i got this error as well. it worked fine last night!

  6. Erland366 commented on May 16, 2025

    @Erland366
    Collaborator

    I cannot reproduce the issue, but we just make a change on the similar issue like @msciancalepore98 mentioned. Perhaps, can you try use the new fix and see if it helps with your issue? (I saw that it's also happening on the VL model)

    Since it's not in the pypi yet, you can install it like this for example in the colab :

    %%capture
    import os
    if "COLAB_" not in "".join(os.environ.keys()):
        !pip install "unsloth @ git+https://github.com/unslothai/unsloth.git" "unsloth_zoo @ git+https://github.com/unslothai/unsloth-zoo.git"
    else:
        # Do this only in Colab notebooks! Otherwise use pip install unsloth
        !pip install --no-deps bitsandbytes accelerate xformers==0.0.29.post3 peft trl==0.15.2 triton cut_cross_entropy
        !pip install "unsloth_zoo @ git+https://github.com/unslothai/unsloth-zoo.git"
        !pip install sentencepiece protobuf "datasets>=3.4.1" huggingface_hub hf_transfer
        !pip install "unsloth @ git+https://github.com/unslothai/unsloth.git"
    

    cc: @Serjio42

  7. danielhanchen commented on Sep 6, 2026

    @danielhanchen
    Member

    Fixed! Inductor backend failures on the first compiled call fall back to eager with a warning instead of killing training. The underlying bug is torch inductor / triton codegen.

    Please update Unsloth: uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir (if it's not in the current release yet it'll be in the next one). Reopen if it still happens!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions