davidberenstein1957 HF staff commited on
Commit
68d064d
·
1 Parent(s): 0aaf1cd

add uv run option to examples

Browse files
examples/hf-serverless_deployment.py CHANGED
@@ -1,4 +1,9 @@
1
- # pip install synthetic-dataset-generator
 
 
 
 
 
2
  import os
3
 
4
  from synthetic_dataset_generator import launch
 
1
+ # /// script
2
+ # requires-python = ">=3.11,<3.12"
3
+ # dependencies = [
4
+ # "synthetic-dataset-generator",
5
+ # ]
6
+ # ///
7
  import os
8
 
9
  from synthetic_dataset_generator import launch
examples/ollama_deployment.py CHANGED
@@ -1,4 +1,9 @@
1
- # pip install synthetic-dataset-generator
 
 
 
 
 
2
  # ollama serve
3
  # ollama run qwen2.5:32b-instruct-q5_K_S
4
  import os
 
1
+ # /// script
2
+ # requires-python = ">=3.11,<3.12"
3
+ # dependencies = [
4
+ # "synthetic-dataset-generator",
5
+ # ]
6
+ # ///
7
  # ollama serve
8
  # ollama run qwen2.5:32b-instruct-q5_K_S
9
  import os
examples/openai_deployment.py CHANGED
@@ -1,4 +1,10 @@
1
- # pip install synthetic-dataset-generator
 
 
 
 
 
 
2
  import os
3
 
4
  from synthetic_dataset_generator import launch
 
1
+ # /// script
2
+ # requires-python = ">=3.11,<3.12"
3
+ # dependencies = [
4
+ # "synthetic-dataset-generator",
5
+ # ]
6
+ # ///
7
+
8
  import os
9
 
10
  from synthetic_dataset_generator import launch
examples/tgi_or_hf_dedicated.py CHANGED
@@ -1,4 +1,9 @@
1
- # pip install synthetic-dataset-generator
 
 
 
 
 
2
  import os
3
 
4
  from synthetic_dataset_generator import launch
 
1
+ # /// script
2
+ # requires-python = ">=3.11,<3.12"
3
+ # dependencies = [
4
+ # "synthetic-dataset-generator",
5
+ # ]
6
+ # ///
7
  import os
8
 
9
  from synthetic_dataset_generator import launch
examples/vllm_deployment.py CHANGED
@@ -1,4 +1,9 @@
1
- # pip install synthetic-dataset-generator
 
 
 
 
 
2
  # vllm serve Qwen/Qwen2.5-1.5B-Instruct
3
  import os
4
 
 
1
+ # /// script
2
+ # requires-python = ">=3.11,<3.12"
3
+ # dependencies = [
4
+ # "synthetic-dataset-generator",
5
+ # ]
6
+ # ///
7
  # vllm serve Qwen/Qwen2.5-1.5B-Instruct
8
  import os
9