ariG23498 HF Staff commited on
Commit
5bc0801
·
verified ·
1 Parent(s): eac811c

Upload nvidia_Qwen3-8B-DMS-8x_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. nvidia_Qwen3-8B-DMS-8x_0.txt +37 -0
nvidia_Qwen3-8B-DMS-8x_0.txt ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ # Load model directly
3
+ from transformers import AutoModel
4
+ model = AutoModel.from_pretrained("nvidia/Qwen3-8B-DMS-8x", trust_remote_code=True, dtype="auto")
5
+ ```
6
+
7
+ ERROR:
8
+ Traceback (most recent call last):
9
+ File "/tmp/nvidia_Qwen3-8B-DMS-8x_0dfd6YQ.py", line 25, in <module>
10
+ model = AutoModel.from_pretrained("nvidia/Qwen3-8B-DMS-8x", trust_remote_code=True, dtype="auto")
11
+ File "/tmp/.cache/uv/environments-v2/3f3f6c6c3fb2127c/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 354, in from_pretrained
12
+ model_class = get_class_from_dynamic_module(
13
+ class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs
14
+ )
15
+ File "/tmp/.cache/uv/environments-v2/3f3f6c6c3fb2127c/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 572, in get_class_from_dynamic_module
16
+ final_module = get_cached_module_file(
17
+ repo_id,
18
+ ...<7 lines>...
19
+ repo_type=repo_type,
20
+ )
21
+ File "/tmp/.cache/uv/environments-v2/3f3f6c6c3fb2127c/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 450, in get_cached_module_file
22
+ get_cached_module_file(
23
+ ~~~~~~~~~~~~~~~~~~~~~~^
24
+ pretrained_model_name_or_path,
25
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
+ ...<7 lines>...
27
+ _commit_hash=commit_hash,
28
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
29
+ )
30
+ ^
31
+ File "/tmp/.cache/uv/environments-v2/3f3f6c6c3fb2127c/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 410, in get_cached_module_file
32
+ modules_needed = check_imports(resolved_module_file)
33
+ File "/tmp/.cache/uv/environments-v2/3f3f6c6c3fb2127c/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 258, in check_imports
34
+ raise ImportError(
35
+ ...<2 lines>...
36
+ )
37
+ ImportError: This modeling file requires the following packages that were not found in your environment: flash_attn. Run `pip install flash_attn`