CTM-AI: A Blueprint for Implementing a General AI System Inspired by Consciousness Theory
News
- [Jan 19] We release our python package
pip install ctm-aito use in one click.
Introduction
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.
Get started
Install from pip
You can install ctm-ai from pypi to use it as a package:
pip install ctm-ai
Install from scratch
Use 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"
Running the examples
To run examples provided in the examples:
poetry install
cd examples
python sarcasm_detection.py
Developing
Develop Demo
To develop the CTM-AI inference demo (both frontend and backend), please follow the instructions below.
For frontend development:
cd frontend
npm install
npm start
For backend development:
poetry install -E backend
uvicorn backend.app.main:app --reload
Install dev options
Follow 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.
Metadata
Release files for ctm-ai 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ctm_ai-0.0.2.tar.gz | 25.4 kB | Without provenance | Details for ctm_ai-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctm_ai-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for ctm_ai-0.0.2-py3-none-any.whl |
Total release size: 68.7 kB
Release files / ctm_ai-0.0.2.tar.gz
| Download URL | ctm_ai-0.0.2.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00a1e7346e987cf213f5c0024bb3625cd06bc9a4ecc93a646e4eca04099071fb
|
|
BLAKE2b-256 checksum How to use checksums |
decea7ad3afec337c57beb2155b45cdaca0e854e16c51a3038a375781dcd568f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.4 Darwin/22.6.0
|
Release files / ctm_ai-0.0.2-py3-none-any.whl
| Download URL | ctm_ai-0.0.2-py3-none-any.whl |
|---|---|
| Size | 43.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db6fc8b33542fb01151c0a7372439918585b8c087e07efc2444ec7bcc6f58311
|
|
BLAKE2b-256 checksum How to use checksums |
f57113c03ea4a69630cff93711567965e6140387c412356f2c24e58f48b4d3b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.4 Darwin/22.6.0
|
Security for ctm-ai 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.