Guidance

Latest version: v0.1.14

Safety actively analyzes 630328 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

0.1.14

This release brings a series of new features, bug fixes, and changes, including:

- Improved compatibility for loading many `transformers` models, including newly tested support for `Phi-3`
- New capabilities in the `guidance.json` function for generating json, including early support for pydantic schemas.
- Support for AzureAI models in new `guidance.models.AzureAIStudio*` classes
- Significant dependency reductions on the default guidance installation
- Small grammar optimizations
- Many improvements to the infrastructure, testing, and release pipelines :)

What's Changed
* replace catches of the ImportError exception with the more specific ModuleNotFoundError exception by paulbkoch in https://github.com/guidance-ai/guidance/pull/733
* fix for issue 660 where the call to llama_batch_free is failing during process shutdown by paulbkoch in https://github.com/guidance-ai/guidance/pull/734
* Fix 713 for mistral models in transformers by slundberg in https://github.com/guidance-ai/guidance/pull/740
* Update JSON API and example notebook by riedgar-ms in https://github.com/guidance-ai/guidance/pull/699
* remove redundant options from select() by mmoskal in https://github.com/guidance-ai/guidance/pull/712
* Add support for `prefixItems`, `minItems`, and `maxItems` for `JSON` array generation by hudson-ai in https://github.com/guidance-ai/guidance/pull/732
* [Docs] Expand documentation by riedgar-ms in https://github.com/guidance-ai/guidance/pull/750
* Generation with `pydantic` schemas by hudson-ai in https://github.com/guidance-ai/guidance/pull/724
* First stab at minimal mypy implementation by ryanpeach in https://github.com/guidance-ai/guidance/pull/738
* remove openai hard dependency by slundberg in https://github.com/guidance-ai/guidance/pull/763
* from guidance import guidance by ryanpeach in https://github.com/guidance-ai/guidance/pull/759
* Run black on codebase by Harsha-Nori in https://github.com/guidance-ai/guidance/pull/765
* add rust bindings by paulbkoch in https://github.com/guidance-ai/guidance/pull/736
* fix Transformers tokenizer issues when models have extended vocabulary and/or special tokens by Harsha-Nori in https://github.com/guidance-ai/guidance/pull/766
* [Install] Rework optional imports by riedgar-ms in https://github.com/guidance-ai/guidance/pull/767
* Update _llama_cpp.py based on new contract of llama_get_logits by czoccolo in https://github.com/guidance-ai/guidance/pull/769
* [Bug] Missing support for AzureAI by riedgar-ms in https://github.com/guidance-ai/guidance/pull/770
* [Doc] Add developer notes by riedgar-ms in https://github.com/guidance-ai/guidance/pull/774
* [Feature] Improved JSON Schema support by riedgar-ms in https://github.com/guidance-ai/guidance/pull/787
* [Bug] Fix Regex for identifying OpenAI models by alexander-brady in https://github.com/guidance-ai/guidance/pull/778
* Fix models like phi-3 which have a mismatched tokenizer definition and model output tensor size by Harsha-Nori in https://github.com/guidance-ai/guidance/pull/792
* [Feature] Add `temperature` to JSON generator by riedgar-ms in https://github.com/guidance-ai/guidance/pull/784
* [Feature] Support for Azure AI Studio by riedgar-ms in https://github.com/guidance-ai/guidance/pull/779
* Add guard for running build from setup.py, redirecting users to pip by Harsha-Nori in https://github.com/guidance-ai/guidance/pull/805
* *Many* testing and CI improvements by riedgar-ms

New Contributors
* mmoskal made their first contribution in https://github.com/guidance-ai/guidance/pull/712
* ryanpeach made their first contribution in https://github.com/guidance-ai/guidance/pull/738
* czoccolo made their first contribution in https://github.com/guidance-ai/guidance/pull/769
* alexander-brady made their first contribution in https://github.com/guidance-ai/guidance/pull/778

**Full Changelog**: https://github.com/guidance-ai/guidance/compare/0.1.13...0.1.14

0.1.13

What's Changed
* Fixed PyPi publishing
* Workflow for GPU Runner by riedgar-ms in https://github.com/guidance-ai/guidance/pull/694
* Add Llama to model test matrix by riedgar-ms in https://github.com/guidance-ai/guidance/pull/703


**Full Changelog**: https://github.com/guidance-ai/guidance/compare/0.1.12...0.1.13

0.1.12

Lots of new features and bug fixes :)

What's Changed
* Adding Caching to OpenAI chat by adamgordonbell in https://github.com/guidance-ai/guidance/pull/603
* Minor Server Tweaks by riedgar-ms in https://github.com/guidance-ai/guidance/pull/612
* Dependency trimming by riedgar-ms in https://github.com/guidance-ai/guidance/pull/613
* Add Python 3.12 by riedgar-ms in https://github.com/guidance-ai/guidance/pull/623
* Grammar Builder for JSON Schema by riedgar-ms in https://github.com/guidance-ai/guidance/pull/619
* remove unused code by paulbkoch in https://github.com/guidance-ai/guidance/pull/629
* fix: missing tokenizer choice in AzureOpenAI subclasses by imarquart in https://github.com/guidance-ai/guidance/pull/641
* Pop first argument from guidance wrapper by hudson-ai in https://github.com/guidance-ai/guidance/pull/634
* Fix behavior of `_json_schema_to_grammar` for schemas with many properties by hudson-ai in https://github.com/guidance-ai/guidance/pull/645
* Exclude tests packages from distribution by shawnz in https://github.com/guidance-ai/guidance/pull/646
* Support multiple additions to ModelStream by shawnz in https://github.com/guidance-ai/guidance/pull/639
* Enable AzureOpenAI model testing by riedgar-ms in https://github.com/guidance-ai/guidance/pull/514
* CI Build Schedule by riedgar-ms in https://github.com/guidance-ai/guidance/pull/662
* Add extensible tests to transformers by riedgar-ms in https://github.com/guidance-ai/guidance/pull/663
* Update _llama_cpp.py to use new bindings by Nking92 in https://github.com/guidance-ai/guidance/pull/665
* Propagate errors in ModelStream by shawnz in https://github.com/guidance-ai/guidance/pull/640
* Fix test_transformers.py by riedgar-ms in https://github.com/guidance-ai/guidance/pull/673
* Together.ai Support by minosvasilias in https://github.com/guidance-ai/guidance/pull/654
* Move get_logits and EngineCallResponse out of the Engine.__call__ function so that the remaining parts can be lowered to Rust or C++ in the future and for simplification of LLM servers that operate in batches by paulbkoch in https://github.com/guidance-ai/guidance/pull/647
* Make Nulls Terminal by hudson-ai in https://github.com/guidance-ai/guidance/pull/679
* [Test] Expand to other OSes by riedgar-ms in https://github.com/guidance-ai/guidance/pull/680
* JSON Schema Rewrite by riedgar-ms in https://github.com/guidance-ai/guidance/pull/651
* [Test] MacOS Issue with Server tests by riedgar-ms in https://github.com/guidance-ai/guidance/pull/684
* Support mutual recursion in `GrammarFunctions` by hudson-ai in https://github.com/guidance-ai/guidance/pull/683
* More JSON schema features by hudson-ai in https://github.com/guidance-ai/guidance/pull/685
* Improve negative test cases for JSON generation by riedgar-ms in https://github.com/guidance-ai/guidance/pull/693
* Separate out server tests by riedgar-ms in https://github.com/guidance-ai/guidance/pull/688
* Add fixture for an LLM by riedgar-ms in https://github.com/guidance-ai/guidance/pull/674
* Removed side effect on the stop argument from _gen by VincentToups in https://github.com/guidance-ai/guidance/pull/677
* Fix for test_gen by riedgar-ms in https://github.com/guidance-ai/guidance/pull/695
* Fix 681 and 682 by slundberg in https://github.com/guidance-ai/guidance/pull/704

New Contributors
* adamgordonbell made their first contribution in https://github.com/guidance-ai/guidance/pull/603
* imarquart made their first contribution in https://github.com/guidance-ai/guidance/pull/641
* hudson-ai made their first contribution in https://github.com/guidance-ai/guidance/pull/634
* shawnz made their first contribution in https://github.com/guidance-ai/guidance/pull/646
* Nking92 made their first contribution in https://github.com/guidance-ai/guidance/pull/665
* minosvasilias made their first contribution in https://github.com/guidance-ai/guidance/pull/654
* VincentToups made their first contribution in https://github.com/guidance-ai/guidance/pull/677

**Full Changelog**: https://github.com/guidance-ai/guidance/compare/0.1.11...0.1.12

0.1.11

What's Changed
* Fix GPU usage by removing `device` from `Transformers` class wrapper to use the device/device_map directly exposed by HF Transformers in kwargs by cpcdoy in https://github.com/guidance-ai/guidance/pull/569
* Adding streaming support under guidance v0.1 by hodlen in https://github.com/guidance-ai/guidance/pull/568
* Fix typos in intro_to_guidance.ipynb by trungsudo in https://github.com/guidance-ai/guidance/pull/574
* Update "Basic Tutorial" link in README.md by alexandremuzio in https://github.com/guidance-ai/guidance/pull/580
* Prompt role blocks debug output + new prompt implementation example by cpcdoy in https://github.com/guidance-ai/guidance/pull/578
* WIP: fix: AzureOpenAI authentication to support API Key auth by younes-io in https://github.com/guidance-ai/guidance/pull/583
* Allow client/server guidance execution by slundberg in https://github.com/guidance-ai/guidance/pull/586

New Contributors
* cpcdoy made their first contribution in https://github.com/guidance-ai/guidance/pull/569
* hodlen made their first contribution in https://github.com/guidance-ai/guidance/pull/568
* trungsudo made their first contribution in https://github.com/guidance-ai/guidance/pull/574
* alexandremuzio made their first contribution in https://github.com/guidance-ai/guidance/pull/580
* younes-io made their first contribution in https://github.com/guidance-ai/guidance/pull/583

**Full Changelog**: https://github.com/guidance-ai/guidance/compare/0.1.10...0.1.11

0.1.10

0.1.9

What's Changed
* Bug patch for HuggingFace transformers tokenization issue.
* Fixed generation coloring for multiple sequence generator calls.
* Bug fix for the base AzureOpenAI class by riedgar-ms in https://github.com/guidance-ai/guidance/pull/543
* Google AI Studio's Gemini by Anilturaga in https://github.com/guidance-ai/guidance/pull/550
* add react notebook by Sam1320 in https://github.com/guidance-ai/guidance/pull/547


**Full Changelog**: https://github.com/guidance-ai/guidance/compare/0.1.8...0.1.9

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.