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:

  • Gemma Family
  • Qwen Family
  • YandexGPT 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 -np 2 -c 8192 --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-1.5.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

contextflow-1.5.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for contextflow-1.5.0.tar.gz
Algorithm Hash digest
SHA256 80299cd21d1a057b4ecef111ade383ee840ca3e0e07579e428071d2d55b67b22
MD5 671fef8b6bdc00fea3b5451e1bdfcf5a
BLAKE2b-256 07d66f658c3a7668cca12706c03a438aa1159741e33958188004e88e255e3209

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for contextflow-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00e46ea46fb7ee7b92685a4f4235260d1d701d4447af90c3961c32c74f75d218
MD5 06eb5982ce337fcc31f7bcadcb7de47c
BLAKE2b-256 1b4d717d5bbc2b8ee34052fd4ad633363b1f73ac61eb8443b467c4287b1ac0b2

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