mirror of
https://github.com/modelscope/modelscope.git
synced 2026-09-01 19:49:03 +02:00
Modify the parameter passing of the text_generation_pipeline class (#355)
This commit is contained in:
@@ -66,7 +66,8 @@ class TextGenerationPipeline(Pipeline, PipelineStreamingOutputMixin):
|
||||
device=device,
|
||||
auto_collate=auto_collate,
|
||||
compile=kwargs.pop('compile', False),
|
||||
compile_options=kwargs.pop('compile_options', {}))
|
||||
compile_options=kwargs.pop('compile_options', {}),
|
||||
**kwargs)
|
||||
|
||||
assert isinstance(self.model, Model), \
|
||||
f'please check whether model config exists in {ModelFile.CONFIGURATION}'
|
||||
|
||||
Reference in New Issue
Block a user