Add inference code
Inference code
Description
Wants to merge: feature/inference into main
Type of change
-
Bug fix -
New feature -
Enhancement -
Documentation update -
Other (specify right below)
Merge request commits
- Add inference code
Inference example code. At the moment, the code simply loads a model state file and generates text using that. Parameters like max sequence length, whether training used fp16, what the tokenizer used for training is etc., need to be passed manually by the user (there's a lot of room for error here). To be improved.
Merges changes from !14 (closed) Closes !14 (closed)
Related Issues
Implements most of the changes also found in !14 (closed)
Screenshots or GIFs
Checklist
-
I have tested the code with the changes manually. -
My code follows the project's style guidelines. -
I have documented my code for others to understand. -
I have updated documentation as needed (including README.md
, code comments and doc strings).
Reviewer Guidelines
Additional Notes
@mentions
Edited by Alexandru-Mihai GHERGHESCU