We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repro from finetune_adapter script:
from pathlib import Path from lit_parrot.adapter import Config max_seq_length = 256 # see scripts/prepare_alpaca.py checkpoint_dir = Path("checkpoints/togethercomputer/RedPajama-INCITE-Base-3B-v1") config = Config.from_name(name=checkpoint_dir.name, block_size=max_seq_length) TypeError: lit_parrot.adapter.Config() got multiple values for keyword argument 'block_size'
https://github.com/Lightning-AI/lit-parrot/blob/0b5620de0c261a69298d39565d6e0f4b1e255fdb/lit_parrot/config.py#L25-L27
We can change it to below so user specified kwargs will overwrite configs.
@classmethod def from_name(cls, name: str, **kwargs: Any) -> Self: return cls(**{**configs[name], **kwargs})
The text was updated successfully, but these errors were encountered:
Thank you, pushed a fix in #60
Sorry, something went wrong.
Fixed by #60
Alpaca LoRA finetuning (2/n) (Lightning-AI#59)
64b9eae
No branches or pull requests
Repro from finetune_adapter script:
https://github.com/Lightning-AI/lit-parrot/blob/0b5620de0c261a69298d39565d6e0f4b1e255fdb/lit_parrot/config.py#L25-L27
We can change it to below so user specified kwargs will overwrite configs.
The text was updated successfully, but these errors were encountered: