From 69cd2b1df8fb1399e9745b27852ebb4287e6b63d Mon Sep 17 00:00:00 2001 From: Kevin Yin Date: Fri, 12 Jul 2024 06:29:08 -0700 Subject: [PATCH 1/2] Remove stray ) in code example (#549) --- doc/dynamic.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/dynamic.md b/doc/dynamic.md index f0d606a5..53e0c5d6 100644 --- a/doc/dynamic.md +++ b/doc/dynamic.md @@ -178,7 +178,7 @@ single completion: output = generator.generate( prompt = "Five good reasons to adopt a cat:", max_new_tokens = 200, - add_bos = True) + add_bos = True, ) print(output) @@ -287,4 +287,4 @@ depending on the job settings. See the docstring for details. ## To be continued -I may expand on this in the future, maybe with some performance benchmarks or something. Here's a cat: 🐈 \ No newline at end of file +I may expand on this in the future, maybe with some performance benchmarks or something. Here's a cat: 🐈 From 4ad39e0ca6485ec534b70c08bc8974f2bac6a2d8 Mon Sep 17 00:00:00 2001 From: Shane Zarechian Date: Mon, 22 Jul 2024 08:18:04 -0400 Subject: [PATCH 2/2] Fix extra parenthesis typo (#559) --- doc/dynamic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/dynamic.md b/doc/dynamic.md index 53e0c5d6..cf1d0a8d 100644 --- a/doc/dynamic.md +++ b/doc/dynamic.md @@ -214,7 +214,7 @@ outputs = generator.generate( max_new_tokens = 200, stop_conditions = [tokenizer.eos_token_id], gen_settings = gen_settings, - add_bos = True) + add_bos = True ) for o in outputs: