Conveyor is a LLM-serving runtime with efficient tool usage capability. Developers can simply create their toolswith a few lines of code to enable partial execution for tools.
conda env create -f environment.yml
conda activate conveyor
pip install flashinfer -i https://flashinfer.ai/whl/cu121/
Use task.py
to run pre-defined examples.
Simply inherit BasePlugin
in conveyor/plugin/base_plugin.py
and implement corresponding methods. Here is a simple example:
class SumPlugin(BasePlugin):
def __init__(self):
super().__init__()
self.val = 0
def process_new_dat(self, data):
# assume your parser gives you some numbers
self.val += data
def finish(self):
return self.val
More examples can be found under the same directory.
Conveyor is licensed under Apache-2.0 license.