Spaces:
Runtime error
Runtime error
Sara Han
commited on
Add deepseek example (#30)
Browse files
examples/hf-serverless-deployment-deepseek.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 10 |
+
|
| 11 |
+
os.environ["HF_TOKEN"] = "hf_..." # push the data to huggingface
|
| 12 |
+
os.environ["MODEL"] = "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B" # use model for instructions
|
| 13 |
+
os.environ["MAGPIE_PRE_QUERY_TEMPLATE"] = "<๏ฝbeginโofโsentence๏ฝ>User: " # use the custom template for the model
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
launch()
|