ariG23498 HF Staff commited on
Commit
a165ff8
·
verified ·
1 Parent(s): 6de8a99

Upload nvidia_Nemotron-Flash-3B-Instruct_0.txt with huggingface_hub

Browse files
nvidia_Nemotron-Flash-3B-Instruct_0.txt ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ # Use a pipeline as a high-level helper
3
+ from transformers import pipeline
4
+
5
+ pipe = pipeline("text-generation", model="nvidia/Nemotron-Flash-3B-Instruct", trust_remote_code=True)
6
+ ```
7
+
8
+ ERROR:
9
+ Traceback (most recent call last):
10
+ File "/tmp/nvidia_Nemotron-Flash-3B-Instruct_0QubS1M.py", line 26, in <module>
11
+ pipe = pipeline("text-generation", model="nvidia/Nemotron-Flash-3B-Instruct", trust_remote_code=True)
12
+ File "/tmp/.cache/uv/environments-v2/4c9f90c52dc2dd65/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1027, in pipeline
13
+ framework, model = infer_framework_load_model(
14
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~^
15
+ adapter_path if adapter_path is not None else model,
16
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
+ ...<5 lines>...
18
+ **model_kwargs,
19
+ ^^^^^^^^^^^^^^^
20
+ )
21
+ ^
22
+ File "/tmp/.cache/uv/environments-v2/4c9f90c52dc2dd65/lib/python3.13/site-packages/transformers/pipelines/base.py", line 293, in infer_framework_load_model
23
+ model = model_class.from_pretrained(model, **kwargs)
24
+ File "/tmp/.cache/uv/environments-v2/4c9f90c52dc2dd65/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 586, in from_pretrained
25
+ model_class = get_class_from_dynamic_module(
26
+ class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs
27
+ )
28
+ File "/tmp/.cache/uv/environments-v2/4c9f90c52dc2dd65/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 604, in get_class_from_dynamic_module
29
+ final_module = get_cached_module_file(
30
+ repo_id,
31
+ ...<8 lines>...
32
+ repo_type=repo_type,
33
+ )
34
+ File "/tmp/.cache/uv/environments-v2/4c9f90c52dc2dd65/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 427, in get_cached_module_file
35
+ modules_needed = check_imports(resolved_module_file)
36
+ File "/tmp/.cache/uv/environments-v2/4c9f90c52dc2dd65/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 260, in check_imports
37
+ raise ImportError(
38
+ ...<2 lines>...
39
+ )
40
+ ImportError: This modeling file requires the following packages that were not found in your environment: flash_attn, mamba_ssm. Run `pip install flash_attn mamba_ssm`