How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "F-urkan/LFM2-8B-A1B-Q4_K_M-GGUF" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "F-urkan/LFM2-8B-A1B-Q4_K_M-GGUF",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "F-urkan/LFM2-8B-A1B-Q4_K_M-GGUF" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "F-urkan/LFM2-8B-A1B-Q4_K_M-GGUF",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

LFM2-8B-A1B-Q4_K_M-GGUF

Just a copy of Q4_K_M version "LiquidAI/LFM2-8B-A1B-GGUF".

With User-Friendly simple commands.

Requirements:

  • linux or stable llama.cpp install with a version newer than 6709.
  • 5 gb vram or ram (cpu is enough)
  • 5 gb disk space

Step-by-step usage

Download Model

Option 1 (fast download speed): 120 mb/s

sudo apt install aria2 -y
aria2c -x 16 -s 16 -k 1M \
  "https://huggingface.co/F-urkan/LFM2-8B-A1B-Q4_K_M-GGUF/resolve/main/LFM2-8B-A1B-Q4_K_M.gguf" \
  -o LFM2-8B-A1B-Q4_K_M.gguf

Option 2 (slow but easy): 10 mb/s

wget https://huggingface.co/F-urkan/LFM2-8B-A1B-Q4_K_M-GGUF/resolve/main/LFM2-8B-A1B-Q4_K_M.gguf

Option 3 (Depend on your browser):

Just click auto download link: link

Get llama.cpp

If your llama.cpp version is newer than b6709 you can skip.

With brew

Install brew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # if brew is installed you can skip.
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"

Install llama.cpp:

brew install llama.cpp

Manual

Prefer that: https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md

Short version:

git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
cmake -B build
cmake --build build --config Release -j
cd build && sudo make install

Run

Server

llama-server -m LFM2-8B-A1B-Q4_K_M.gguf --port 10000 --no-mmap --jinja --temp 0 -c 4096 -ngl 0

Cli

llama-cli -m LFM2-8B-A1B-Q4_K_M.gguf --no-mmap --jinja --temp 0 -c 4096 -ngl 0
Downloads last month
64
GGUF
Model size
8B params
Architecture
lfm2moe
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for F-urkan/LFM2-8B-A1B-Q4_K_M-GGUF

Quantized
(31)
this model