How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="librepowerai/StableLM-2-Zephyr-1.6B-Q4_K_M-BE",
	filename="stablelm-2-zephyr-1.6b-Q4_K_M-be.gguf",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

StableLM-2-Zephyr-1.6B Q4_K_M โ€” Big-Endian

Big-endian GGUF of stabilityai/stablelm-2-zephyr-1_6b for IBM AIX and other big-endian POWER systems.

Why Big-Endian?

GGUF files store all data in little-endian. On big-endian systems (AIX, z/OS), llama.cpp detects the mismatch and fails. This pre-converted model works directly.

Model Details

Field Value
Parameters 1.6B
Architecture StableLM transformer
Quantization Q4_K_M
Context length 4,096 tokens
File stablelm-2-zephyr-1.6b-Q4_K_M-be.gguf (983 MB)
Endianness Big-endian
Source stabilityai/stablelm-2-zephyr-1_6b

Performance on IBM POWER9 (AIX 7.3)

Tested at 16 threads, SMT-2:

  • Generation: 15.02 tok/s
  • Prompt processing: 2.12 tok/s

Quick Start (AIX)

git clone https://gitlab.com/librepower/llama-aix.git
cd llama-aix
./scripts/fetch_upstream.sh && ./scripts/build_aix_73.sh
wget https://huggingface.co/librepowerai/StableLM-2-Zephyr-1.6B-Q4_K_M-BE/resolve/main/stablelm-2-zephyr-1.6b-Q4_K_M-be.gguf
./build/bin/llama-simple -m stablelm-2-zephyr-1.6b-Q4_K_M-be.gguf -n 256 -t 16 "Your prompt"

Related


LibrePower โ€” Unlocking IBM Power Systems through open source. https://librepower.org | hello@librepower.org

Downloads last month
9
GGUF
Model size
2B params
Architecture
stablelm
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 librepowerai/StableLM-2-Zephyr-1.6B-Q4_K_M-BE

Quantized
(18)
this model