mirror of
https://github.com/amazon-science/chronos-forecasting
synced 2026-05-24 01:58:27 +00:00
Add: If dict is given
This commit is contained in:
parent
7f2f5a1d18
commit
6248da86ec
1 changed files with 1 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ class Chronos2Pipeline(BaseChronosPipeline):
|
|||
revision=lora_revision,
|
||||
)
|
||||
elif isinstance(lora_config, dict):
|
||||
lora_config.setdefault("revision", lora_revision)
|
||||
lora_config = LoraConfig(**lora_config)
|
||||
else:
|
||||
assert isinstance(lora_config, LoraConfig), (
|
||||
|
|
|
|||
Loading…
Reference in a new issue