Instructions to use Austriani/LFM3-1.7B-ARA-Abliterated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Austriani/LFM3-1.7B-ARA-Abliterated with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Austriani/LFM3-1.7B-ARA-Abliterated", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Austriani/LFM3-1.7B-ARA-Abliterated", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Austriani/LFM3-1.7B-ARA-Abliterated", trust_remote_code=True, device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Austriani/LFM3-1.7B-ARA-Abliterated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Austriani/LFM3-1.7B-ARA-Abliterated" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Austriani/LFM3-1.7B-ARA-Abliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Austriani/LFM3-1.7B-ARA-Abliterated
- SGLang
How to use Austriani/LFM3-1.7B-ARA-Abliterated with 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 "Austriani/LFM3-1.7B-ARA-Abliterated" \ --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": "Austriani/LFM3-1.7B-ARA-Abliterated", "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 "Austriani/LFM3-1.7B-ARA-Abliterated" \ --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": "Austriani/LFM3-1.7B-ARA-Abliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Austriani/LFM3-1.7B-ARA-Abliterated with Docker Model Runner:
docker model run hf.co/Austriani/LFM3-1.7B-ARA-Abliterated
LFM3-1.7B
Independent Abliteration
"Low KLD, low refusals, zero borrowed weights."
Why these numbers matter: A KLD of 0.0374 means the abliterated model stays remarkably close to the original LFM3-1.7B in behavior on harmless prompts. A refusal rate of 5/100 means the model remains cooperative on the vast majority of adversarial prompts without collapsing into a degenerate state. This balanceโminimal drift, maximal complianceโis the result of a carefully constrained ARA run, not a blunt directional projection.
LFM3-1.7B is Liquid AI's tri-hybrid text model, designed for edge deployment and long-context agentic work. It replaces the standard "all-attention" stack with a mix of convolutions, sliding-window attention, and global attention, keeping inference fast and memory low without sacrificing quality.
Key architectural refinements in LFM3-1.7B include head-wise gated attention (a per-head sigmoid gate that suppresses activation outliers) and partial RoPE on global attention layers (rotating only the highest-frequency half of each head, so content matching remains distance-agnostic). A sandwich norm normalizes both block input and output, keeping activations well-scaled across the 24-layer stack. For a 1.7B model, it delivers roughly the short-prompt performance of LFM2-1.2B while being about 25% faster at 8K context.
This release uses Arbitrary-Rank Ablation (ARA) via Heretic, not traditional directional ablation. ARA captures input/output tensors at each targeted transformer module with PyTorch hooks and applies direct, unconstrained matrix optimization (L-BFGS) to modify those modules. The optimizer balances three competing objectives: (1) preserve harmless behavior, (2) align harmful outputs with harmless ones, and (3) overcorrect harmful outputs away from their original state for stronger steering.
| Parameter | Value |
|---|---|
start_layer | 11 |
end_layer | 23 |
preserve_good | 0.8435 |
steer_bad | 0.0007 |
overcorrect | 0.2399 |
neighbors | 14 |
preserve_good (0.8435) anchors the model to its original harmless behavior, which is why KLD stays low. A very low steer_bad (0.0007) means the optimizer is not aggressively forcing harmful prompts toward harmless onesโit is letting the structural ablation do the work. The moderate overcorrect (0.2399) provides a small extra push away from refusal states without destabilizing the output distribution. The layer window (11โ23) covers the deeper half of the 24-layer stack, where refusal directions are most salient in LFM3.
There are several abliterated LFM3-1.7B models on Hugging Face. Each makes a different trade-off. This one was not built to win a leaderboardโit was built because independent, reproducible ARA runs matter.
Here is how this release differs from the alternatives, so you can decide which one fits your use case.
The bottom line: If you want the absolute lowest KLD, MihaiPopa's release is excellent. If you want the fewest refusals, Vortecks's release is excellent. If you want a reproducible, independently tuned ARA run with every parameter disclosed, and you are willing to accept a slightly higher KLD for a more principled ablation method, this is the model for you.
- Downloads last month
- 70