Upload Qwen_Qwen3-VL-2B-Instruct_0.py with huggingface_hub
Browse files
Qwen_Qwen3-VL-2B-Instruct_0.py
CHANGED
|
@@ -6,6 +6,7 @@
|
|
| 6 |
# "transformers",
|
| 7 |
# "accelerate",
|
| 8 |
# "peft",
|
|
|
|
| 9 |
# ]
|
| 10 |
# ///
|
| 11 |
|
|
@@ -30,6 +31,14 @@ except Exception as e:
|
|
| 30 |
with open('Qwen_Qwen3-VL-2B-Instruct_0.txt', 'w', encoding='utf-8') as f:
|
| 31 |
import traceback
|
| 32 |
traceback.print_exc(file=f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
finally:
|
| 34 |
from huggingface_hub import upload_file
|
| 35 |
upload_file(
|
|
|
|
| 6 |
# "transformers",
|
| 7 |
# "accelerate",
|
| 8 |
# "peft",
|
| 9 |
+
# "slack-sdk",
|
| 10 |
# ]
|
| 11 |
# ///
|
| 12 |
|
|
|
|
| 31 |
with open('Qwen_Qwen3-VL-2B-Instruct_0.txt', 'w', encoding='utf-8') as f:
|
| 32 |
import traceback
|
| 33 |
traceback.print_exc(file=f)
|
| 34 |
+
|
| 35 |
+
from slack_sdk import WebClient
|
| 36 |
+
client = WebClient(token=os.environ["SLACK_TOKEN"])
|
| 37 |
+
client.chat_postMessage(
|
| 38 |
+
channel=#exp-slack-alerts,
|
| 39 |
+
text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/Qwen_Qwen3-VL-2B-Instruct_0.txt|Qwen_Qwen3-VL-2B-Instruct_0.txt>',
|
| 40 |
+
thread_ts=parent_message_ts,
|
| 41 |
+
)
|
| 42 |
finally:
|
| 43 |
from huggingface_hub import upload_file
|
| 44 |
upload_file(
|