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
Ask before overwriting the output file
Browse files169 unmodified lines1701711721731741755 unmodified lines18118218318418518621 unmodified lines208209210211212213214215169 unmodified linesdefault=Path(os.path.curdir) / "result.json",help="Path of the benchmark results to be written",)return parser.parse_args(args[1:])5 unmodified linesLLAMA_CPP_PATH = args.llama_cpp_pathMODEL_DIR = args.model_dirresults = []mulmat_perf = []repetitions: int = args.repetitions21 unmodified lines"mulmat_perf": mulmat_perf,"results": results,}logger.info("Writing output to: %s", args.out)logger.debug("Final results: %s", json.dumps(final_result, indent=4))with open(args.out, "w") as f:json.dump(final_result, f, indent=4)f.flush()169 unmodified lines1701711721731741751765 unmodified lines18218318418518618718818919019119219319419521 unmodified lines217218219220221222223224169 unmodified linesdefault=Path(os.path.curdir) / "result.json",help="Path of the benchmark results to be written",)parser.add_argument("--force", action="store_true", help="Overwrite the result file without asking")return parser.parse_args(args[1:])5 unmodified linesLLAMA_CPP_PATH = args.llama_cpp_pathMODEL_DIR = args.model_diroutput_file = Path(args.out).absolute()if output_file.exists() and not args.force:ask = input("Result file exists. Do you want to overwrite it? [y/N]")if not ask.strip().lower().startswith("y"):logger.info("Not running, leaving output file intact")exit()results = []mulmat_perf = []repetitions: int = args.repetitions21 unmodified lines"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:json.dump(final_result, f, indent=4)f.flush()
bench-TriLMs.py+11-2