Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: **Commit Message:** Add CLI support for grammar-constrained generation and remove old examples - Introduced sub-command in CLI for text generation with grammar constraints. - Added options for 4-bit and 8-bit model loading using bitsandbytes. - Removed obsolete example scripts for generating C code, JSON arrays, and relation extraction triples. - Refactored to include device handling. - Updated to enhance device management within the grammar-constrained generation process. * feat: Refactor grammar-constrained generation scripts and CLI options - Updated with new examples for JSON, code generation, semantic parsing, and Unicode support. - Removed outdated scripts (, , , , , , , ) and merged functionalities into . - Enhanced grammar examples, including more detailed entities and relations in . - Added new CLI arguments (, ) in to control contrast mode and save output to a file. - Improved unicode detection in by adding a static method to automatically detect Unicode in grammar strings. - Removed the argument from various recognizer classes as it is now automatically detected. - Added tests for Unicode detection in . * doc: Update README with CLI example for JSON generation and improve documentation structure - Added a command-line example for generating a valid JSON object using . - Updated descriptions for generating JSON objects with minimal changes to HF code. - Improved section summaries for examples using the HF pipeline API. - Renamed to to better reflect its purpose and location in the project structure. * feat: Refactor and improve documentation and CLI interface - **README Enhancements:** - Improved structure, readability, and consistency across sections. - Updated the Quick Start section with examples for generating JSON objects using . - Expanded explanations for grammar use cases and clarified documentation on automatic JSON schema grammar conversion. - Updated the list of supported models and provided better guidance for advanced grammar debugging. - **CLI Improvements:** - Simplified CLI prompt argument by renaming to . - Added device selection options (, ) for model execution. - **Code Cleanup:** - Removed outdated script, consolidating its functionality within the CLI and README examples. - **Miscellaneous:** - Removed outdated comments and TODOs from the CLI code.
- Loading branch information