Skip to content

Commit

Permalink
docs: rename enable_checkpoints to checkpoint_strategy (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidberenstein1957 authored Jan 16, 2024
1 parent 28b60c1 commit 768fa56
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/snippets/technical-reference/pipeline/pipe_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
instruction_dataset,
num_generations=2,
batch_size=1,
enable_checkpoints=True,
checkpoint_strategy=True,
display_progress_bar=True,
)
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@
" instructions_dataset, # type: ignore\n",
" num_generations=2,\n",
" batch_size=8,\n",
" enable_checkpoints=True,\n",
" checkpoint_strategy=True,\n",
" display_progress_bar=True,\n",
")"
]
Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline-accelerate-and-openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_current_device() -> int:
inputs, # type: ignore
num_generations=2,
batch_size=1,
enable_checkpoints=True,
checkpoint_strategy=True,
display_progress_bar=True,
)
dataset = gather_object(dataset)
Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline-fn-ultrafeedback-labeller.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
num_generations=2,
batch_size=1,
display_progress_bar=True,
enable_checkpoints=True,
checkpoint_strategy=True,
)
end = time.time()
print("Elapsed", end - start)
Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline-fn-ultrafeedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
dataset, # type: ignore
num_generations=2,
batch_size=1,
enable_checkpoints=True,
checkpoint_strategy=True,
display_progress_bar=True,
)
end = time.time()
Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline-llamacpp-and-openai-process.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def load_openai_llm(task: "Task") -> "LLM":
dataset, # type: ignore
num_generations=2,
batch_size=1,
enable_checkpoints=True,
checkpoint_strategy=True,
display_progress_bar=False,
)

Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline-llamacpp-and-openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
dataset, # type: ignore
num_generations=2,
batch_size=1,
enable_checkpoints=True,
checkpoint_strategy=True,
display_progress_bar=True,
)

Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline-transformers-and-openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
dataset, # type: ignore
num_generations=2,
batch_size=1,
enable_checkpoints=True,
checkpoint_strategy=True,
display_progress_bar=True,
)

Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline-vllm-and-openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
dataset, # type: ignore
num_generations=2,
batch_size=1,
enable_checkpoints=True,
checkpoint_strategy=True,
display_progress_bar=True,
)

Expand Down

0 comments on commit 768fa56

Please sign in to comment.