Instructions to use compilade/quant-tests with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use compilade/quant-tests with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf compilade/quant-tests:F16 # Run inference directly in the terminal: llama cli -hf compilade/quant-tests:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf compilade/quant-tests:F16 # Run inference directly in the terminal: llama cli -hf compilade/quant-tests:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf compilade/quant-tests:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf compilade/quant-tests:F16
Use Docker
docker model run hf.co/compilade/quant-tests:F16
- Llama new
- LM Studio
- Jan
- Ollama
How to use compilade/quant-tests with Ollama:
ollama run hf.co/compilade/quant-tests:F16
- Unsloth Desktop
- Docker Model Runner
How to use compilade/quant-tests with Docker Model Runner:
docker model run hf.co/compilade/quant-tests:F16
- Lemonade
How to use compilade/quant-tests with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull compilade/quant-tests:F16
Run and chat with the model
lemonade run user.quant-tests-F16
List all available models
lemonade list
- Atomic Chat
Add more GPU information in the results file
Browse files5 unmodified lines67891011196 unmodified lines2082092102112122132142152162172182192202212225 unmodified linesfrom urllib import requestimport osimport shleximport subprocessimport sysfrom typing import Any, Sequence196 unmodified linesmulmat_perf.append(test_backend_perf())results.extend(llama_bench(repetitions=repetitions, types=GPU_TYPES))cpuinfo = subprocess.run(["lscpu"], capture_output=True).stdout.decode(encoding="utf-8")final_result = {"cpuinfo": cpuinfo,"mulmat_perf": mulmat_perf,"results": results,}logger.info("Writing output to: %s", output_file)logger.debug("Final results: %s", json.dumps(final_result, indent=4))with open(output_file, "w") as f:5 unmodified lines6789101112196 unmodified lines2092102112122132142152162172182192202212222232242252262272282295 unmodified linesfrom urllib import requestimport osimport shleximport shutilimport subprocessimport sysfrom typing import Any, Sequence196 unmodified linesmulmat_perf.append(test_backend_perf())results.extend(llama_bench(repetitions=repetitions, types=GPU_TYPES))final_result: dict[str, Any] = {"mulmat_perf": mulmat_perf,"results": results,}if shutil.which("lscpu") is not None:logger.info("Getting CPU info")final_result["cpuinfo"] = subprocess.run(["lscpu"], capture_output=True).stdout.decode(encoding="utf-8")if args.gpu and shutil.which("nvidia-smi") is not None:logger.info("Getting NVIDIA GPU info")final_result["gpuinfo"] = subprocess.run(["nvidia-smi", "-q"], capture_output=True).stdout.decode(encoding="utf-8")logger.info("Writing output to: %s", output_file)logger.debug("Final results: %s", json.dumps(final_result, indent=4))with open(output_file, "w") as f:
bench-TriLMs.py+13-6