Post
1037
π’ Having a massive amount of data to bulk the remotely accessed LLM π€ with Chain-of-Though (CoT) π might result in connection loss.
The latter may lead to Python Exception π₯ and challenges with generated content restoration.
To address on this problem, sharing the no-strings / tiny framework that exploits SQLite3 for caching each query.
Such caching allows smooth relaunch in the case of any data loss. β
With that, happy to share bulk-chain project and more on that within links below:
β github: https://github.com/nicolay-r/bulk-chain
π¦ PyPI: https://pypi.org/project/bulk-chain/
There are three steps to quickstart
(see them in attachment π):
β 1. Install library
β 2. Declare CoT-schema in json file π
β 3. Wrap your transformer or use existed adapters
https://github.com/nicolay-r/bulk-chain/tree/master/ext
For example, here is the provider for Replicate IO service (https://replicate.com/):
https://github.com/nicolay-r/bulk-chain/blob/master/ext/replicate.py
that supports one of the largers publicly available LLaMA-3.1-405B:
meta-llama/Llama-3.1-405B-Instruct
The latter may lead to Python Exception π₯ and challenges with generated content restoration.
To address on this problem, sharing the no-strings / tiny framework that exploits SQLite3 for caching each query.
Such caching allows smooth relaunch in the case of any data loss. β
With that, happy to share bulk-chain project and more on that within links below:
β github: https://github.com/nicolay-r/bulk-chain
π¦ PyPI: https://pypi.org/project/bulk-chain/
There are three steps to quickstart
(see them in attachment π):
β 1. Install library
β 2. Declare CoT-schema in json file π
β 3. Wrap your transformer or use existed adapters
https://github.com/nicolay-r/bulk-chain/tree/master/ext
For example, here is the provider for Replicate IO service (https://replicate.com/):
https://github.com/nicolay-r/bulk-chain/blob/master/ext/replicate.py
that supports one of the largers publicly available LLaMA-3.1-405B:
meta-llama/Llama-3.1-405B-Instruct