Upload Skywork-R1V3-38B with huggingface_hub
Browse files- Skywork-R1V3-38B +5 -6
Skywork-R1V3-38B
CHANGED
@@ -7,12 +7,11 @@
|
|
7 |
# ///
|
8 |
|
9 |
try:
|
10 |
-
#
|
11 |
-
from transformers import
|
12 |
-
|
13 |
-
pipe = pipeline("visual-question-answering", model="Skywork/Skywork-R1V3-38B", trust_remote_code=True)
|
14 |
except Exception as e:
|
15 |
-
exception_file = 'Skywork_Skywork-R1V3-
|
16 |
with open(exception_file, 'w') as f:
|
17 |
import traceback
|
18 |
traceback.print_exc(file=f)
|
@@ -21,6 +20,6 @@ except Exception as e:
|
|
21 |
upload_file(
|
22 |
path_or_fileobj=exception_file,
|
23 |
repo_id='model-metadata/model-code-exception',
|
24 |
-
path_in_repo='09-07-25/Skywork_Skywork-R1V3-
|
25 |
repo_type='dataset',
|
26 |
)
|
|
|
7 |
# ///
|
8 |
|
9 |
try:
|
10 |
+
# Load model directly
|
11 |
+
from transformers import AutoModel
|
12 |
+
model = AutoModel.from_pretrained("Skywork/Skywork-R1V3-38B", trust_remote_code=True)
|
|
|
13 |
except Exception as e:
|
14 |
+
exception_file = 'Skywork_Skywork-R1V3-38B_1_exception.txt'
|
15 |
with open(exception_file, 'w') as f:
|
16 |
import traceback
|
17 |
traceback.print_exc(file=f)
|
|
|
20 |
upload_file(
|
21 |
path_or_fileobj=exception_file,
|
22 |
repo_id='model-metadata/model-code-exception',
|
23 |
+
path_in_repo='09-07-25/Skywork_Skywork-R1V3-38B_1_exception.txt',
|
24 |
repo_type='dataset',
|
25 |
)
|