Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/huggingface/transformers
/ backward
Method
backward
src/transformers/integrations/bitnet.py:252–254 ·
view source on GitHub ↗
(ctx, grad_output)
Source
from the content-addressed store, hash-verified
250
251
@staticmethod
252
def
backward(ctx, grad_output):
253
grad_input = grad_output.clone()
254
return
grad_input
255
256
257
class
AutoBitLinear(nn.Linear):
Callers
15
smp_forward_backward
Function · 0.45
training_step
Method · 0.45
test_enable_input_require_grads_with_gradient_checkpointing
Method · 0.45
check_training_gradient_checkpointing
Method · 0.45
test_training
Method · 0.45
test_retain_grad_hidden_states_attentions
Method · 0.45
test_problem_types
Method · 0.45
test_flash_attn_2_can_compile_with_attention_mask_None_without_graph_break
Method · 0.45
test_torch_compile_for_training
Method · 0.45
_test_tp_backward_impl
Function · 0.45
_test_ep_backward_impl
Function · 0.45
test_training_overfit
Method · 0.45
Calls
no outgoing calls
Tested by
15
test_enable_input_require_grads_with_gradient_checkpointing
Method · 0.36
check_training_gradient_checkpointing
Method · 0.36
test_training
Method · 0.36
test_retain_grad_hidden_states_attentions
Method · 0.36
test_problem_types
Method · 0.36
test_flash_attn_2_can_compile_with_attention_mask_None_without_graph_break
Method · 0.36
test_torch_compile_for_training
Method · 0.36
_test_tp_backward_impl
Function · 0.36
_test_ep_backward_impl
Function · 0.36
test_training_overfit
Method · 0.36
test_training
Method · 0.36
test_training
Method · 0.36