- [Jan 19] We release our python package
pip install ctm-aito use in one click.
CTM-AI is a component-based multimodal training and inference framework that support any modality input and text-form output. Its key architecture is motivated by Conscious Turing Machine (CTM) [paper]. Each CTM includes multiple processors to handle inputs from different modalities and it includes up-tree and down-tree process to conduct iterative inference process.
You can install ctm-ai from pypi to use it as a package:
pip install ctm-aiUse a virtual environment, e.g. with anaconda3:
conda create -n ctm-space python=3.10
conda activate ctm-space
curl -sSL https://install.python-poetry.org | python3
export PATH="$HOME/.local/bin:$PATH"To run examples provided in the examples:
poetry install
cd examples
python sarcasm_detection.pyTo develop the CTM-AI inference demo (both frontend and backend), please follow the instructions below.
For frontend development:
cd frontend
npm install
npm startFor backend development:
poetry install -E backend
uvicorn backend.app.main:app --reloadFollow the installation instruction above and then, instead of running python -m pip install -e ., run the following commands:
python -m pip install -e ".[dev]"
mypy --install-types --non-interactive ctm-ai
python -m pip install pre-commit
pre-commit clean
pre-commit install
The installation of pre-commit would avoid formatting error and large file injects into github commits.
