How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf psx7/llama4B
# Run inference directly in the terminal:
llama-cli -hf psx7/llama4B
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf psx7/llama4B
# Run inference directly in the terminal:
llama-cli -hf psx7/llama4B
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf psx7/llama4B
# Run inference directly in the terminal:
./llama-cli -hf psx7/llama4B
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf psx7/llama4B
# Run inference directly in the terminal:
./build/bin/llama-cli -hf psx7/llama4B
Use Docker
docker model run hf.co/psx7/llama4B
Quick Links

psx7/llama4B

The Model psx7/llama4B was converted to MLX format from rasyosef/Llama-3.1-Minitron-4B-Chat using mlx-lm version 0.18.1.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("psx7/llama4B")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Downloads last month
273
Safetensors
Model size
5B params
Tensor type
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for psx7/llama4B

Quantized
(16)
this model

Dataset used to train psx7/llama4B