Skip to main content

Large Language Models Tools

Project description

Environment

To create a Python virtual environment, use the command:

conda env create -f environment.yml

Installation

pip install contextflow

Supported Models

The following LLM models are supported:

  • Cohere Family
  • Gemma Family
  • Qwen Family

LLM backends

The following LLM backends are supported:

  • Llama.cpp Server API

Run Llama.CPP Server backend

llama.cpp/build/bin/llama-server -m model_q5_k_m.gguf -ngl 99 -fa -c 4096 --host 0.0.0.0 --port 8000

Install CUDA toolkit for Llama.cpp compilation

Please note that the toolkit version must match the driver version. The driver version can be found using the nvidia-smi command. Аor example, to install toolkit for CUDA 12.4 you need to run the following commands:

CUDA_TOOLKIT_VERSION=12-4
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt update
sudo apt -y install cuda-toolkit-${CUDA_TOOLKIT_VERSION}
echo -e '
export CUDA_HOME=/usr/local/cuda
export PATH=${CUDA_HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:$LD_LIBRARY_PATH
' >> ~/.bashrc

Set GPU Max Temp

nvidia-smi -pm 1
sudo nvidia-smi -gtt 80
nvidia-smi -q | grep Target

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

contextflow-0.0.12.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

contextflow-0.0.12-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file contextflow-0.0.12.tar.gz.

File metadata

  • Download URL: contextflow-0.0.12.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for contextflow-0.0.12.tar.gz
Algorithm Hash digest
SHA256 ee027da1ea03be2eaeddc84a0da2f3a060b40b041d762d32b899241d6908d9da
MD5 6cb75fead0633fa38589a40fff1aeadf
BLAKE2b-256 89a21d753e32144d78d99b60ba01872f6e1ba3edd00a0d6bdd0cda1ae03e6267

See more details on using hashes here.

File details

Details for the file contextflow-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: contextflow-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for contextflow-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d5ff4e79ff259ef857cc86afac3593bf7c09656052e4cce9f143a2a9116b1fd0
MD5 ff634795ca04840207287bed95557131
BLAKE2b-256 d31184d0bbd3281b2b4d4d5d5e14ce634d7c90ce7c13b0931dba761e4f5ee9ef

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