ariG23498 HF Staff commited on
Commit
8a09b1f
·
verified ·
1 Parent(s): 6e6cf69

Upload ByteDance_Ouro-2.6B-Thinking_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. ByteDance_Ouro-2.6B-Thinking_0.txt +98 -0
ByteDance_Ouro-2.6B-Thinking_0.txt ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ # Use a pipeline as a high-level helper
3
+ from transformers import pipeline
4
+
5
+ pipe = pipeline("text-generation", model="ByteDance/Ouro-2.6B-Thinking", trust_remote_code=True)
6
+ messages = [
7
+ {"role": "user", "content": "Who are you?"},
8
+ ]
9
+ pipe(messages)
10
+ ```
11
+
12
+ ERROR:
13
+ Traceback (most recent call last):
14
+ File "/tmp/ByteDance_Ouro-2.6B-Thinking_0Y2ExMP.py", line 23, in <module>
15
+ pipe(messages)
16
+ ~~~~^^^^^^^^^^
17
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 325, in __call__
18
+ return super().__call__(Chat(text_inputs), **kwargs)
19
+ ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1467, in __call__
21
+ return self.run_single(inputs, preprocess_params, forward_params, postprocess_params)
22
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1474, in run_single
24
+ model_outputs = self.forward(model_inputs, **forward_params)
25
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1374, in forward
26
+ model_outputs = self._forward(model_inputs, **forward_params)
27
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 432, in _forward
28
+ output = self.model.generate(input_ids=input_ids, attention_mask=attention_mask, **generate_kwargs)
29
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
30
+ return func(*args, **kwargs)
31
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/generation/utils.py", line 2564, in generate
32
+ result = decoding_method(
33
+ self,
34
+ ...<5 lines>...
35
+ **model_kwargs,
36
+ )
37
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/generation/utils.py", line 2784, in _sample
38
+ outputs = self(**model_inputs, return_dict=True)
39
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
40
+ return self._call_impl(*args, **kwargs)
41
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
42
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1786, in _call_impl
43
+ return forward_call(*args, **kwargs)
44
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/utils/generic.py", line 918, in wrapper
45
+ output = func(self, *args, **kwargs)
46
+ File "/tmp/.cache/huggingface/modules/transformers_modules/ByteDance/Ouro_hyphen_2_dot_6B_hyphen_Thinking/a2d3a54cea06168ba371ec3e089734f715824d5b/modeling_ouro.py", line 477, in forward
47
+ outputs, hidden_states_list, gate_list = self.model(
48
+ ~~~~~~~~~~^
49
+ input_ids=input_ids,
50
+ ^^^^^^^^^^^^^^^^^^^^
51
+ ...<6 lines>...
52
+ **kwargs,
53
+ ^^^^^^^^^
54
+ )
55
+ ^
56
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
57
+ return self._call_impl(*args, **kwargs)
58
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
59
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1786, in _call_impl
60
+ return forward_call(*args, **kwargs)
61
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/utils/generic.py", line 1064, in wrapper
62
+ outputs = func(self, *args, **kwargs)
63
+ File "/tmp/.cache/huggingface/modules/transformers_modules/ByteDance/Ouro_hyphen_2_dot_6B_hyphen_Thinking/a2d3a54cea06168ba371ec3e089734f715824d5b/modeling_ouro.py", line 382, in forward
64
+ hidden_states = decoder_layer(
65
+ hidden_states,
66
+ ...<7 lines>...
67
+ **kwargs,
68
+ )
69
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/modeling_layers.py", line 94, in __call__
70
+ return super().__call__(*args, **kwargs)
71
+ ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
72
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
73
+ return self._call_impl(*args, **kwargs)
74
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
75
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1786, in _call_impl
76
+ return forward_call(*args, **kwargs)
77
+ File "/tmp/.cache/huggingface/modules/transformers_modules/ByteDance/Ouro_hyphen_2_dot_6B_hyphen_Thinking/a2d3a54cea06168ba371ec3e089734f715824d5b/modeling_ouro.py", line 228, in forward
78
+ hidden_states, _ = self.self_attn(
79
+ ~~~~~~~~~~~~~~^
80
+ hidden_states=hidden_states,
81
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82
+ ...<6 lines>...
83
+ **kwargs,
84
+ ^^^^^^^^^
85
+ )
86
+ ^
87
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl
88
+ return self._call_impl(*args, **kwargs)
89
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
90
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1786, in _call_impl
91
+ return forward_call(*args, **kwargs)
92
+ File "/tmp/.cache/huggingface/modules/transformers_modules/ByteDance/Ouro_hyphen_2_dot_6B_hyphen_Thinking/a2d3a54cea06168ba371ec3e089734f715824d5b/modeling_ouro.py", line 156, in forward
93
+ key_states, value_states = past_key_value.update(key_states, value_states, current_ut * self.config.num_hidden_layers + self.layer_idx, cache_kwargs)
94
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95
+ File "/tmp/.cache/uv/environments-v2/c9d1f503ab6be800/lib/python3.13/site-packages/transformers/cache_utils.py", line 776, in update
96
+ keys, values = self.layers[layer_idx].update(key_states, value_states, cache_kwargs)
97
+ ~~~~~~~~~~~^^^^^^^^^^^
98
+ IndexError: list index out of range