Changelog
Added
- Introduced a new chat generation feature.
- Added `predacons.chat_generate` method to generate chat responses using trained models.
- Example usage:
python
chat = [
{"role": "user", "content": "Hey, what is a car?"}
]
chat_output = predacons.chat_generate(
model=model,
sequence=chat,
max_length=50,
tokenizer=tokenizers,
trust_remote_code=True,
apply_chat_template=True
)
Updated
- README.md to include documentation and example usage for the new chat generation feature.
What's Changed
* added docs by shouryashashank in https://github.com/Predacons/predacons/pull/31
* added chat generation by shouryashashank in https://github.com/Predacons/predacons/pull/33
* Feature/chat generation by shouryashashank in https://github.com/Predacons/predacons/pull/34
**Full Changelog**: https://github.com/Predacons/predacons/compare/v0.0.120...v0.0.121