Downloads · 30 days
167
13% of all-time downloads
FabricAI/Fabric1.5-0.7B-Instruct
Fabric1.5-0.7B-Instruct is a text generation model from FabricAI. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
167
13% of all-time downloads
All-time downloads
1.2K
Public
Parameters
743M
1.5 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors1.5 GB · 100%
From the Hugging Face model README

Tried the model? We'd love to hear what you think.
Your feedback helps us improve Fabric models and future releases.
</div>Fabric 1.5 is a lightweight, high-capability language model developed by Fabric AI. It is built upon the Fabric1.5-0.7B-Base pretrained checkpoint and fine-tuned for instruction following. It introduces a novel chunked memory architecture and demonstrates that a 0.7B parameter model can achieve meaningful performance on reasoning, knowledge, and instruction-following tasks.
Fabric 1.5 employs a Chunked Fabric Memory architecture — every 3rd block splits attention into two parallel branches:
A per-token scalar gate blends the outputs, giving the model 256 summary vectors of long-range memory at full 32K context without quadratic memory growth.
Evaluated on an NVIDIA A100-SXM4-40GB using lm-eval harness with FP16 weights.
| Benchmark | Accuracy | Type |
|---|---|---|
| ARC Easy (0-shot) | 54.97% | Loglikelihood |
| ARC Challenge (0-shot) | 26.88% | Loglikelihood |
| HellaSwag (0-shot) | 35.00% | Loglikelihood |
| MMLU (0-shot) | 28.96% | Loglikelihood |
| C-Eval (0-shot) | 27.12% | Loglikelihood |
| Benchmark | Fabric 1.5 | Qwen3.5-0.8B | Delta |
|---|---|---|---|
| MMLU (0-shot) | 28.96% | 29.7% | -0.74% |
Fabric 1.5 performs within 0.74% of Qwen3.5-0.8B on MMLU despite being 12% smaller (0.7B vs 0.8B) and having no vision encoder.
Fabric 1.5 can be served through the Hugging Face transformers serve CLI using an OpenAI-compatible API.
Install
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install --upgrade "transformers[serving]" openai
Fabric 1.5 uses custom Transformers code, so --trust-remote-code is required.
Custom architecture compatibility patch
Current versions of transformers serve may try to load FabricForCausalLM directly from the installed Transformers package instead of loading it from the model repository. Run this patch once inside the active virtual environment:
python - <<'PY'
from pathlib import Path
import shutil
import transformers.cli.serving.model_manager as model_manager
path = Path(model_manager.__file__)
backup = path.with_suffix(".py.bak")
old = """ architecture = getattr(transformers, config.architectures[0])
return architecture.from_pretrained(model_id, **model_kwargs)"""
new = """ from transformers import AutoModelForCausalLM
return AutoModelForCausalLM.from_pretrained(
model_id,
config=config,
**model_kwargs,
)"""
source = path.read_text()
if old not in source:
raise SystemExit(
f"Expected code was not found in:\n{path}\n"
"Your Transformers version may already contain a fix."
)
if not backup.exists():
shutil.copy2(path, backup)
path.write_text(source.replace(old, new))
print(f"Patched: {path}")
print(f"Backup: {backup}")
PY
macOS with Apple Silicon
transformers serve FabricAI/Fabric1.5-0.7B-Instruct \
--trust-remote-code \
--device mps \
--dtype float16 \
--attn-implementation eager \
--host 0.0.0.0 \
--port 8000
NVIDIA GPU
For NVIDIA GPUs with BF16 support:
transformers serve FabricAI/Fabric1.5-0.7B-Instruct \
--trust-remote-code \
--device cuda \
--dtype bfloat16 \
--attn-implementation eager \
--host 0.0.0.0 \
--port 8000
For NVIDIA GPUs that do not support BF16, use FP16:
transformers serve FabricAI/Fabric1.5-0.7B-Instruct \
--trust-remote-code \
--device cuda \
--dtype float16 \
--attn-implementation eager \
--host 0.0.0.0 \
--port 8000
Stream a chat response
Install jq if it is not already available. On macOS:
brew install jq
Then send an OpenAI-compatible streaming request:
curl -sN http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "FabricAI/Fabric1.5-0.7B-Instruct",
"messages": [
{
"role": "system",
"content": "You are Fabric, a helpful AI assistant."
},
{
"role": "user",
"content": "List and go into detail on the key tasks you can help with in a healthcare clinic setting. Provide a thorough, dedicated paragraph of around 100 words for each example."
}
],
"max_tokens": 1024,
"stream": true,
"generation_config": "{\"do_sample\":false,\"repetition_penalty\":1.1}"
}' \
| sed -u -n 's/^data: //p' \
| jq --unbuffered -j 'select(.choices) | .choices[0].delta.content // empty'
printf '\n'
The server exposes an OpenAI-compatible API at http://localhost:8000/v1.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "FabricAI/Fabric1.5-0.7B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=torch.float16,
device_map="auto",
)
# Updated messages matching the curl setup
messages = [
{
"role": "system",
"content": "You are Fabric, a helpful AI assistant."
},
{
"role": "user",
"content": "First introduce yourself. Then, list and go into detail on the key tasks you can help with in a healthcare clinic setting. Provide a thorough, dedicated paragraph of around 100 words for each example."
}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
with torch.no_grad():
output_ids = model.generate(
**inputs,
max_new_tokens=1024,
do_sample=False,
repetition_penalty=1.1,
use_cache=True,
)
response = tokenizer.decode(output_ids[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True).strip()
print(response)
<|bos|><|system|>
You are Fabric, a large language model developed by Fabric AI.<|end|>
<|user|>
Hello!<|end|>
<|assistant|>
Hi! How can I help you?<|end|>
Special tokens: <bos>, <pad>, <|end|>, <|system|>, <|user|>, <|assistant|>
| Mode | Temperature | Top-p | Top-k | Repetition Penalty |
|---|---|---|---|---|
| General chat | 0.65 | 0.90 | 50 | 1.05 |
| Creative writing | 0.80 | 0.95 | 50 | 1.00 |
| Factual/knowledge | 0.40 | 0.85 | 30 | 1.05 |
| Code generation | 0.30 | 0.90 | 40 | 1.02 |
Pre-training (18B tokens, 1× NVIDIA DGX H100 8-GPU):
| Source | Weight | Description |
|---|---|---|
| FineWeb-Edu | 60% | High-quality educational web text |
| DCLM-Baseline | 25% | Deduplicated Common Crawl subset |
| OpenWebMath | 10% | Math-focused web text |
| Cosmopedia-v2 | 5% | Instruction-tuned educational data |
Post-training (SFT):
Fabric 1.5 was trained on a single NVIDIA DGX H100 node with 8× H100 80GB GPUs. The model runs efficiently on:
| Hardware | Precision | Batch Size | Context |
|---|---|---|---|
| 1× NVIDIA H100 80GB | FP16 | 8 | 32K |
| 1× NVIDIA A100 40GB | FP16 | 4 | 32K |
| Apple Silicon (MPS) | FP16 | 1 | 32K |
| CPU | FP32 | 1 | 32K |
The chunked memory architecture ensures memory scales linearly with context, not quadratically.
Fabric AI Open License v1.0 — a permissive, attribution-required license. See LICENSE for full terms.
Key requirements:
@misc{fabric1.5,
title = {{Fabric 1.5}: A Causal Language Model with Chunked Fabric Memory},
author = {Fabric AI},
year = 2026,
}