ariG23498 HF Staff commited on
Commit
b678195
·
verified ·
1 Parent(s): a0cb3ba

Upload Qwen_Qwen3-4B-Instruct-2507_0.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. Qwen_Qwen3-4B-Instruct-2507_0.py +9 -0
Qwen_Qwen3-4B-Instruct-2507_0.py CHANGED
@@ -6,6 +6,7 @@
6
  # "transformers",
7
  # "accelerate",
8
  # "peft",
 
9
  # ]
10
  # ///
11
 
@@ -24,6 +25,14 @@ except Exception as e:
24
  with open('Qwen_Qwen3-4B-Instruct-2507_0.txt', 'w', encoding='utf-8') as f:
25
  import traceback
26
  traceback.print_exc(file=f)
 
 
 
 
 
 
 
 
27
  finally:
28
  from huggingface_hub import upload_file
29
  upload_file(
 
6
  # "transformers",
7
  # "accelerate",
8
  # "peft",
9
+ # "slack-sdk",
10
  # ]
11
  # ///
12
 
 
25
  with open('Qwen_Qwen3-4B-Instruct-2507_0.txt', 'w', encoding='utf-8') as f:
26
  import traceback
27
  traceback.print_exc(file=f)
28
+
29
+ from slack_sdk import WebClient
30
+ client = WebClient(token=os.environ["SLACK_TOKEN"])
31
+ client.chat_postMessage(
32
+ channel=#exp-slack-alerts,
33
+ text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/Qwen_Qwen3-4B-Instruct-2507_0.txt|Qwen_Qwen3-4B-Instruct-2507_0.txt>',
34
+ thread_ts=parent_message_ts,
35
+ )
36
  finally:
37
  from huggingface_hub import upload_file
38
  upload_file(