![]() To build the documentation you will also need to run pip install -r requirements-doc.txt.īefore pushing your code to repository please run pre-commit run -all-files and pytest to make sure that the code is formatted correctly and that the tests pass.ĭo not hesitate to open a draft PR before your contribution is ready, especially if you have questions and/or need feedback. Issue tracker is only intended for actionable items. We currently only accept bug fixes and documentation contributions. With these prompting primitives Outlines makes building agents like json( model, Character)( "Give me a character description") Select if youd like to Include hidden layers and Include object bounds. Leather = "leather" chainmail = "chainmail" plate = "plate" class Character( BaseModel):Īge: int armor: Armor weapon: Weapon strength: int model = models. Sword = "sword" axe = "axe" mace = "mace" spear = "spear" bow = "bow" crossbow = "crossbow" class Armor( str, Enum): generate as generate class Weapon( str, Enum): You can follow or for regular updates! Installationįrom typing import List from enum import Enum from pydantic import BaseModel, constr import outlines. Prompt-token alignment so you don't have to think about tokenization details ( #201).Context-Free Grammar guided generation ( #178).Outlines 〰 has new releases and features coming every week! Make sure to ⭐ star and □ watch this repository to stay up to date. □ Integration with HuggingFace's transformers models. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |