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.8.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file smart_context-0.0.8.tar.gz
.
File metadata
- Download URL: smart_context-0.0.8.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbc76da2611b698dad0757b2219a2310f3ea399008266de9b1ba0978ee074e88 |
|
MD5 | 302bb7324c82e5228736442939a56710 |
|
BLAKE2b-256 | 0b70c6003b5f8fe5fcf2deda6b009deec7faa7e164c86a5316468fe52f03c424 |
File details
Details for the file smart_context-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: smart_context-0.0.8-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae7f5efeadfe0d0140e2fe505bb014c5353dc67fa3cd1f8ea0f82653aaa1d38f |
|
MD5 | 8461c59af530e8d86667d21cd4dc727e |
|
BLAKE2b-256 | 1bdaccdca7a72266f863532fc65f2b507ff91f7941ac3e64ea3504e5a4cbe399 |