Instructions to use FerrellSyntheticIntelligence/fsi-anomaly with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use FerrellSyntheticIntelligence/fsi-anomaly with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf FerrellSyntheticIntelligence/fsi-anomaly # Run inference directly in the terminal: llama cli -hf FerrellSyntheticIntelligence/fsi-anomaly
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf FerrellSyntheticIntelligence/fsi-anomaly # Run inference directly in the terminal: llama cli -hf FerrellSyntheticIntelligence/fsi-anomaly
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 FerrellSyntheticIntelligence/fsi-anomaly # Run inference directly in the terminal: ./llama-cli -hf FerrellSyntheticIntelligence/fsi-anomaly
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 FerrellSyntheticIntelligence/fsi-anomaly # Run inference directly in the terminal: ./build/bin/llama-cli -hf FerrellSyntheticIntelligence/fsi-anomaly
Use Docker
docker model run hf.co/FerrellSyntheticIntelligence/fsi-anomaly
- LM Studio
- Jan
- Ollama
How to use FerrellSyntheticIntelligence/fsi-anomaly with Ollama:
ollama run hf.co/FerrellSyntheticIntelligence/fsi-anomaly
- Unsloth Desktop
- Docker Model Runner
How to use FerrellSyntheticIntelligence/fsi-anomaly with Docker Model Runner:
docker model run hf.co/FerrellSyntheticIntelligence/fsi-anomaly
- Lemonade
How to use FerrellSyntheticIntelligence/fsi-anomaly with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull FerrellSyntheticIntelligence/fsi-anomaly
Run and chat with the model
lemonade run user.fsi-anomaly-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
| """Our own Q8 quantization (GGUF Q8_0-style): int8 storage, fp32 compute. | |
| torch's built-in dynamic quantization has no kernels on this ARM build | |
| ('unknown architecure'), so we implement the standard scheme used by GGUF | |
| Q8_0: per-channel symmetric int8 weights with fp32 scales. Storage drops to | |
| ~1/4 of fp32; compute dequantizes on load, so behavior is near-lossless. | |
| Usage: | |
| qstate = quantize_q8(model) # {key: {"scale": [out], "q": int8}} | |
| load_q8(model, qstate) # dequant into float weights in place | |
| """ | |
| import torch | |
| def quantize_tensor(t: torch.Tensor) -> dict: | |
| """Per-channel symmetric int8 quantization of a [out, in] linear weight.""" | |
| t = t.float().contiguous() | |
| out_dim = t.shape[0] | |
| amax = t.abs().amax(dim=1, keepdim=True).clamp(min=1e-8) | |
| scale = (amax / 127.0).squeeze(1) | |
| q = torch.round(t / scale.view(-1, 1)).clamp(-127, 127).to(torch.int8) | |
| return {"q": q, "scale": scale} | |
| def dequantize_tensor(qstate: dict) -> torch.Tensor: | |
| return qstate["q"].float() * qstate["scale"].view(-1, 1) | |
| def quantize_q8(model: torch.nn.Module) -> dict: | |
| qs = {} | |
| for name, mod in model.named_modules(): | |
| if isinstance(mod, torch.nn.Linear): | |
| prefix = name + ".weight" | |
| qs[prefix] = quantize_tensor(mod.weight.detach()) | |
| return qs | |
| def load_q8(model: torch.nn.Module, qstate: dict): | |
| """Dequantize Q8 states into the model's float weights (in place).""" | |
| with torch.no_grad(): | |
| for name, mod in model.named_modules(): | |
| if isinstance(mod, torch.nn.Linear) and name + ".weight" in qstate: | |
| mod.weight.copy_(dequantize_tensor(qstate[name + ".weight"])) | |
| return model | |