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 smart-context

Supported Models

The following LLM models are supported:

  • CohereForAI/c4ai-command-r-08-2024
  • google/gemma-2-27b-it
  • mistralai/Mistral-Large-Instruct-2407
  • Qwen/Qwen2.5-32B-Instruct

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. To install toolkit for CUDA 12.5 you need to run the following commands:

CUDA_TOOLKIT_VERSION=12-5
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

smart_context-0.0.9.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

smart_context-0.0.9-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file smart_context-0.0.9.tar.gz.

File metadata

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

File hashes

Hashes for smart_context-0.0.9.tar.gz
Algorithm Hash digest
SHA256 6566d3d4d9b7e51fecf80f7c6701c2ffdd55447430399b274cacf1e57b3d141a
MD5 900284f93af8833c0605229f34024849
BLAKE2b-256 81a26780580839690c92afe3110b9d310fe97cbb3dbc061b89d899e1a2745532

See more details on using hashes here.

File details

Details for the file smart_context-0.0.9-py3-none-any.whl.

File metadata

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

File hashes

Hashes for smart_context-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b5e3e2db90f9e09479dd199617300ec6a9040e657fbe5cc5d04096ca323b6f2f
MD5 66072776d3b15009b53709464e97d54d
BLAKE2b-256 b95b3d81376ad0a0422f81368b512aef0244af70077fa8391ef3505c6fc42fbe

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