mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Rename a variable
This commit is contained in:
parent
9e9cfc4b31
commit
2f16ce309a
@ -29,7 +29,7 @@ class RWKVModel:
|
|||||||
pipeline = PIPELINE(model, tokenizer_path.as_posix())
|
pipeline = PIPELINE(model, tokenizer_path.as_posix())
|
||||||
|
|
||||||
result = self()
|
result = self()
|
||||||
result.model = pipeline
|
result.pipeline = pipeline
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def generate(self, context, token_count=20, temperature=1, top_p=1, alpha_frequency=0.25, alpha_presence=0.25, token_ban=[0], token_stop=[], callback=None):
|
def generate(self, context, token_count=20, temperature=1, top_p=1, alpha_frequency=0.25, alpha_presence=0.25, token_ban=[0], token_stop=[], callback=None):
|
||||||
@ -42,4 +42,4 @@ class RWKVModel:
|
|||||||
token_stop = token_stop
|
token_stop = token_stop
|
||||||
)
|
)
|
||||||
|
|
||||||
return self.model.generate(context, token_count=token_count, args=args, callback=callback)
|
return self.pipeline.generate(context, token_count=token_count, args=args, callback=callback)
|
||||||
|
Loading…
Reference in New Issue
Block a user