Cappr

Latest version: v0.9.0

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

Scan your dependencies

Page 1 of 6

0.9.0

Breaking changes

* `pip install cappr` will no longer install `openai, tiktoken`. Install them yourself, or install them using `pip install "cappr[openai]"`. For previous versions of `cappr`, if you needed to install `cappr` without these dependencies, you had to run:

bash
python -m pip install \
"numpy>=1.21.0" \
"tqdm>=4.27.0" && \
python -m pip install --no-deps cappr


* `cappr.openai.api.Model` no longer includes the [deprecated `text-*` models](https://platform.openai.com/docs/deprecations/instructgpt-models)

New features

None

Bug fixes

None

0.8.8

Breaking changes

None

New features

* The axis of [`posterior_prob`](https://cappr.readthedocs.io/en/latest/cappr.utils.classify.html#cappr.utils.classify.posterior_prob) defaults to the last one

Bug fixes

None

0.8.7

Breaking changes

None

New features

* You no longer need to instantiate your Llama CPP model with `logits_all=True`

Bug fixes

None

0.8.6

Breaking changes

* Setting the internal `past` attribute of the cache to `None` now will cause an error to be raised if you try to use it again. Please use the original model instead

New features

* Support [LongLLaMA](https://github.com/CStanKonrad/long_llama)
* `repr` for cached model
* Don't check logits from Llama CPP

Bug fixes

None

0.8.5

Breaking changes

None

New features

* Slightly better docstrings

Bug fixes

None

0.8.4

Breaking changes

None

New features

* For online applications, you can cache the model once and use it later. See [`cappr.huggingface.classify.cache_model`](https://cappr.readthedocs.io/en/latest/cappr.huggingface.classify.html#cappr.huggingface.classify.cache_model) and [`cappr.llama_cpp.classify.cache_model`](https://cappr.readthedocs.io/en/latest/cappr.llama_cpp.classify.html#cappr.llama_cpp.classify.cache_model). See the demonstration in the [Craigslist Bargains demo](https://github.com/kddubey/cappr/blob/main/demos/huggingface/craigslist_bargains.ipynb)

Bug fixes

None

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.