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
Metadata
Release files for smart-context 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smart_context-0.0.10.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smart_context-0.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.0 kB
Release files / smart_context-0.0.10.tar.gz
| Download URL | smart_context-0.0.10.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27e635abff203fd05c1df15fd1684dfc4f26fbeea7dad67961c91f21659b03a1
|
|
BLAKE2b-256 checksum How to use checksums |
7e17302680be6e3eac199d158a5cdf924e27ae8d2318885b813f60f6fe3c4f4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.12
|
Release files / smart_context-0.0.10-py3-none-any.whl
| Download URL | smart_context-0.0.10-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42d09574d7ae0770278f03e64595c4141209e372a188a918be674679694e085e
|
|
BLAKE2b-256 checksum How to use checksums |
b4e4c92a2389dea678a2f3a276be3dc0261fc839794120a499c6383b43112c49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.12
|