Commit ·
62d2339
1
Parent(s): 3b671a6
updated serialized file name for update_outline
Browse files
pipelines/generate_outline.py
CHANGED
|
@@ -28,7 +28,7 @@ builder = PromptBuilder(template=template)
|
|
| 28 |
|
| 29 |
generator = HuggingFaceAPIGenerator(
|
| 30 |
api_type="serverless_inference_api",
|
| 31 |
-
api_params={"model": "meta-llama/Meta-Llama-3-
|
| 32 |
token=Secret.from_env_var("HF_API_TOKEN"),
|
| 33 |
generation_kwargs={"max_new_tokens": 1024, "stop": ["<stop>"]},
|
| 34 |
)
|
|
|
|
| 28 |
|
| 29 |
generator = HuggingFaceAPIGenerator(
|
| 30 |
api_type="serverless_inference_api",
|
| 31 |
+
api_params={"model": "meta-llama/Meta-Llama-3.2-3B-Instruct"},
|
| 32 |
token=Secret.from_env_var("HF_API_TOKEN"),
|
| 33 |
generation_kwargs={"max_new_tokens": 1024, "stop": ["<stop>"]},
|
| 34 |
)
|
pipelines/update_outline.py
CHANGED
|
@@ -71,7 +71,7 @@ pipeline.connect("json_grabber.body", "output_validator.body")
|
|
| 71 |
pipeline.connect("output_validator.invalid_replies", "prompt_builder.invalid_replies")
|
| 72 |
pipeline.connect("output_validator.error_message", "prompt_builder.error_message")
|
| 73 |
|
| 74 |
-
with open("./pipelines/
|
| 75 |
pipeline.dump(file)
|
| 76 |
|
| 77 |
pipeline.draw(path=Path("update_outline.png"))
|
|
|
|
| 71 |
pipeline.connect("output_validator.invalid_replies", "prompt_builder.invalid_replies")
|
| 72 |
pipeline.connect("output_validator.error_message", "prompt_builder.error_message")
|
| 73 |
|
| 74 |
+
with open("./pipelines/update_outline.yml", "w") as file:
|
| 75 |
pipeline.dump(file)
|
| 76 |
|
| 77 |
pipeline.draw(path=Path("update_outline.png"))
|
pipelines/{update_script.yml → update_outline.yml}
RENAMED
|
File without changes
|