ariG23498 HF Staff commited on
Commit
6adf62e
·
verified ·
1 Parent(s): 049b6ff

Upload unsloth_Qwen3-30B-A3B-Thinking-2507-GGUF_0.py with huggingface_hub

Browse files
unsloth_Qwen3-30B-A3B-Thinking-2507-GGUF_0.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # /// script
2
+ # requires-python = ">=3.12"
3
+ # dependencies = [
4
+ # "transformers",
5
+ # "torch",
6
+ # ]
7
+ # ///
8
+
9
+ try:
10
+ # !pip install llama-cpp-python
11
+
12
+ from llama_cpp import Llama
13
+
14
+ llm = Llama.from_pretrained(
15
+ repo_id="unsloth/Qwen3-30B-A3B-Thinking-2507-GGUF",
16
+ filename="{{GGUF_FILE}}",
17
+ )
18
+ with open('unsloth_Qwen3-30B-A3B-Thinking-2507-GGUF_0.txt', 'w') as f:
19
+ f.write('Everything was good in unsloth_Qwen3-30B-A3B-Thinking-2507-GGUF_0.txt')
20
+ except Exception as e:
21
+ with open('unsloth_Qwen3-30B-A3B-Thinking-2507-GGUF_0.txt', 'w') as f:
22
+ import traceback
23
+ traceback.print_exc(file=f)
24
+ finally:
25
+ from huggingface_hub import upload_file
26
+ upload_file(
27
+ path_or_fileobj='unsloth_Qwen3-30B-A3B-Thinking-2507-GGUF_0.txt',
28
+ repo_id='model-metadata/custom_code_execution_files',
29
+ path_in_repo='unsloth_Qwen3-30B-A3B-Thinking-2507-GGUF_0.txt',
30
+ repo_type='dataset',
31
+ )