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
Currently, Floneum allows you to set a grammar that text generation should conform to. This is useful, but we could take it farther:
Text generation could be represented as a tree of words. The current position in that text is like a cursor in that tree.
In the rust API, we could allow users to either work with the raw cursor API, or use a validation callback:
let session = ModelInstance::new(ModelType::LlamaSevenB); session.generate_validated(|text| text.len() < 5 && text.chars().all(|c| c == '*');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, Floneum allows you to set a grammar that text generation should conform to. This is useful, but we could take it farther:
Text generation could be represented as a tree of words. The current position in that text is like a cursor in that tree.
In the rust API, we could allow users to either work with the raw cursor API, or use a validation callback:
The text was updated successfully, but these errors were encountered: