Commit 0eadcb7
authored
load_model_tokenizer_for_generate should raise ValueError (#99)
This is what InstructionTextGenerationPipeline expects.
Also same code used in: https://huggingface.co/databricks/dolly-v2-12b/blob/main/instruct_pipeline.py1 parent dcef926 commit 0eadcb7
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments