Create pipeline_config.json
Browse files- pipeline_config.json +25 -0
pipeline_config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pipeline_config = {
|
| 2 |
+
"task": "text-generation",
|
| 3 |
+
"framework": "pt",
|
| 4 |
+
"model": {
|
| 5 |
+
"name": "ombhojane/wellness-mini",
|
| 6 |
+
"type": "AutoModelForCausalLM"
|
| 7 |
+
},
|
| 8 |
+
"tokenizer": {
|
| 9 |
+
"name": "ombhojane/wellness-mini",
|
| 10 |
+
"type": "AutoTokenizer"
|
| 11 |
+
}
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
# Save pipeline config
|
| 15 |
+
import json
|
| 16 |
+
with open("pipeline_config.json", "w") as f:
|
| 17 |
+
json.dump(pipeline_config, f, indent=2)
|
| 18 |
+
|
| 19 |
+
# Upload pipeline config
|
| 20 |
+
api.upload_file(
|
| 21 |
+
path_or_fileobj="pipeline_config.json",
|
| 22 |
+
path_in_repo="pipeline_config.json",
|
| 23 |
+
repo_id="ombhojane/wellness-mini",
|
| 24 |
+
repo_type="model"
|
| 25 |
+
)
|