Formatron v0.4.9
Formatron empowers everyone to control the output format of language models with minimal overhead.
|
▼Cabc.ABC | |
▼Cformatron.extractor.Extractor | An abstract extractor that extracts data from a string and offers its KBNF rules definition |
Cformatron.extractor.LiteralExtractor | An extractor that extracts a literal string |
▼Cformatron.extractor.NonterminalExtractor | An extractor that extracts data corresponding to a nonterminal |
Cformatron.extractor.ChoiceExtractor | An extractor that uses multiple extractors to extract data |
Cformatron.extractor.SubstringExtractor | An extractor that extracts a substring of a given string from the input string |
Cformatron.formats.json.JsonExtractor | An extractor that loads json data to an object from a string |
Cformatron.formats.regex.RegexComplementExtractor | An extractor that extracts data by matching a regex complement |
Cformatron.formats.regex.RegexExtractor | An extractor that extracts a string using a regular expression |
▼Cformatron.formatter.FormatterBase | An abstract Formatter that enforces a format on the string generated by a language model |
Cformatron.formatter.Formatter | |
▼Cformatron.schemas.schema.FieldInfo | An abstract field info that describes a data field in a schema |
Cformatron.schemas.dict_inference.FieldInfo | |
Cformatron.schemas.json_schema.FieldInfo | |
Cformatron.schemas.pydantic.FieldInfo | A wrapper for pydantic FieldInfo |
▼Cformatron.schemas.schema.Schema | An abstract schema that describes some data |
Cformatron.schemas.pydantic.ClassSchema | A wrapper for pydantic BaseModel that implements the Schema interface |
Cformatron.config.EngineGenerationConfig | Configuration for how an KBNF engine should be used in text generation |
Cformatron.formatter.FormatterBuilder | A builder for creating a Formatter |
Cformatron.integrations.vllm.FormattersLogitsProcessor | Logit processor that uses formatters to mask batch logits |
▼Crwkv.utils.PIPELINE | |
Cformatron.integrations.RWKV.PIPELINE | A wrapper for the pipeline of RWKV |
▼Crwkv.utils.PIPELINE_ARGS | |
Cformatron.integrations.RWKV.PIPELINE_ARGS | A wrapper for the arguments of the pipeline of RWKV |
Cformatron.schemas.schema.SubstringOf | A metadata class that indicates that the field is a substring of the given string |
Cformatron.schemas.schema.TypeWithMetadata | A type with metadata |
▼CBaseModel | |
Cformatron.schemas.pydantic.ClassSchema | A wrapper for pydantic BaseModel that implements the Schema interface |
▼CExLlamaV2Filter | |
Cformatron.integrations.exllamav2.FormatterFilter | ExLlamaV2Filter that uses a formatter to mask logits |
▼CLogitsProcessor | |
Cformatron.integrations.transformers.FormattersLogitsProcessor | Logit processor that uses formatters to mask batch logits |