BSD Ports

misc/llama-cpp 11669 FreeBSD

Facebook's LLaMA model in C/C++

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
45215c23f4
License
MIT
Categories
misc
Package size
6736.8 KiB, 17197.4 KiB installed

Description

The main goal of llama.cpp is to enable LLM inference with minimal setup and state-of-the-art performance on a wide variety of hardware - locally and in the cloud.

In the other systems

SystemPortVersion
FreeBSDmisc/llama-cpp11669
DragonFlymisc/llama-cpp3285
MidnightBSDai/llama-cpp9426

Install

Binary package:

pkg install llama-cpp

From the ports tree:

cd /usr/ports/misc/llama-cpp/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	llama-cpp>0:misc/llama-cpp
LIB_DEPENDS=	libllama-batched-bench-impl.so:misc/llama-cpp

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1097510975---
FreeBSD:14:quarterly1097510975n/a--
FreeBSD:15:latest1097511669n/a--
FreeBSD:15:quarterly1097510975n/an/an/a
FreeBSD:16:latest1097511669n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Library 1

The full lists below include those, and their dependencies in turn.

Build dependencies 28
Run dependencies 20
Required by 1

Configuration

Options name: misc_llama-cpp

OptionDefaultDescription
EXAMPLESonBuild and/or install examples
USES
cmake:testing compiler:c++11-lang python:run shebangfix ssl
Service scripts
none

Message after installing

You installed LLaMA-cpp: Facebook's LLaMA model runner.

In order to experience LLaMA-cpp please download some
AI model in the GGUF format, for example from huggingface.com,
run the script below, and open localhost:9011 in your browser
to communicate with this AI model.

$ llama-server -m $MODEL \
  --host 0.0.0.0 \
  --port 9011 \
  -ngl 15

or

you can add the following lines to /etc/rc.conf,
start the llama-server service,
and navigate to http://localhost:8080:
> llama_server_enable=YES
> llama_server_model=/path/to/models/llama-2-7b-chat.Q4_K_M.gguf
> llama_server_args="--device Vulkan0 -ngl 27"

In order to use the multi-model feature do not use llama_server_model.
Instead add the argument "--models-preset /path/to/models.ini"
Add pre-downloaded models into models.ini, for example:
[Qwen3.5-35B-A3B-Uncensored]
model = /path/to/Qwen3.5-35B-A3B-Uncensored-HauhauCS-Aggressive-Q4_K_M.gguf

You can switch to the CPU-only operation by choosing the port option
VULKAN=OFF in misc/ggml (not in llama-cpp).

Files

pkg-plist 65
  • bin/llama
  • bin/llama-batched
  • bin/llama-batched-bench
  • bin/llama-bench
  • bin/llama-cli
  • bin/llama-completion
  • bin/llama-convert-llama2c-to-ggml
  • bin/llama-cvector-generator
  • bin/llama-debug
  • bin/llama-diffusion-cli
  • bin/llama-embedding
  • bin/llama-eval-callback
  • bin/llama-export-lora
  • bin/llama-finetune
  • bin/llama-fit-params
  • bin/llama-gen-docs
  • bin/llama-gguf
  • bin/llama-gguf-hash
  • bin/llama-gguf-split
  • bin/llama-idle
  • bin/llama-imatrix
  • bin/llama-lookahead
  • bin/llama-lookup
  • bin/llama-lookup-create
  • bin/llama-lookup-merge
  • bin/llama-lookup-stats
  • bin/llama-mtmd-cli
  • bin/llama-parallel
  • bin/llama-passkey
  • bin/llama-perplexity
  • bin/llama-quantize
  • bin/llama-results
  • bin/llama-retrieval
  • bin/llama-server
  • bin/llama-simple
  • bin/llama-simple-chat
  • bin/llama-speculative
  • bin/llama-speculative-simple
  • bin/llama-tokenize
  • bin/llama-tts
  • include/llama-cpp.h
  • include/llama.h
  • include/mtmd-debug.h
  • include/mtmd-helper.h
  • include/mtmd.h
  • lib/cmake/llama/llama-config-version.cmake
  • lib/cmake/llama/llama-config.cmake
  • lib/libllama-batched-bench-impl.so
  • lib/libllama-bench-impl.so
  • lib/libllama-cli-impl.so
  • lib/libllama-common.so
  • lib/libllama-common.so.0
  • lib/libllama-common.so.0.7.0
  • lib/libllama-completion-impl.so
  • lib/libllama-fit-params-impl.so
  • lib/libllama-perplexity-impl.so
  • lib/libllama-quantize-impl.so
  • lib/libllama-server-impl.so
  • lib/libllama.so
  • lib/libllama.so.0
  • lib/libllama.so.0.7.0
  • lib/libmtmd.so
  • lib/libmtmd.so.0
  • lib/libmtmd.so.0.7.0
  • libdata/pkgconfig/llama.pc
distinfo 3
FileSizeSHA256
llama-cpp-11669/dist.tar.gz3.136013e+0681d35456d45e17b5650fd8cc64d10f920e033e31cbbbc959eceeb0e47b6a3d4b
llama-cpp-11669/dist.tar.gz.sha256787e22b6ed91fe0d97c59a1e12d46bf986f909138d335b3caffde871679a06d682
llama-cpp-11669/ggml-org-llama.cpp-b11669_GH0.tar.gz3.8185755e+07e06ba4fa263e30fdb9f0e65f00a8965202ddaa0c51f548a67e1f9b2164d04efc
Master sites 1
  • https://huggingface.co/buckets/ggml-org/llama-ui/resolve/b11669/:ui_assets

Commit history 7

DateCommitCreditsLog message
45215c23f4 Yuri Victorovich misc/llama-cpp: fix distinfo
It was messed up. PR: 299503 Reported by: Ivan Rozhuk <[email protected]>
19ad26c933 Yuri Victorovich misc/llama-cpp: update 11429 → 11669
4e9a875e67 Yuri Victorovich misc/llama-cpp: update 10975 → 11429
22132a2d91 Yuri Victorovich misc/llama-cpp: update 10900 → 10975
785f8754cf Yuri Victorovich misc/llama-cpp: Only for amd64

The latest 5 of 7 in the history this site was built from.