Skip to main content

A cognitive architecture motivated by consciousness turing machine.

Project description

ctm-ai-banner

CTM-AI: A Blueprint for Implementing a General AI System Inspired by Consciousness Theory

pypi Python 3.10 GitHub pull request

News

  • [Jan 19] We release our python package pip install ctm-ai to 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ctm_ai-0.0.2.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ctm_ai-0.0.2-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

Details for the file ctm_ai-0.0.2.tar.gz.

File metadata

  • Download URL: ctm_ai-0.0.2.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.4 Darwin/22.6.0

File hashes

Hashes for ctm_ai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 00a1e7346e987cf213f5c0024bb3625cd06bc9a4ecc93a646e4eca04099071fb
MD5 336775854ca0d7c69c80352e5ebc47a7
BLAKE2b-256 decea7ad3afec337c57beb2155b45cdaca0e854e16c51a3038a375781dcd568f

See more details on using hashes here.

File details

Details for the file ctm_ai-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ctm_ai-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 43.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.4 Darwin/22.6.0

File hashes

Hashes for ctm_ai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db6fc8b33542fb01151c0a7372439918585b8c087e07efc2444ec7bcc6f58311
MD5 73b3d36bbf7c1f8c6658d36345acc936
BLAKE2b-256 f57113c03ea4a69630cff93711567965e6140387c412356f2c24e58f48b4d3b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page