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
| """Streaming encode of a large raw-text corpus to a uint16 .bin file. | |
| Memory-safe: encodes line-by-line, flushes chunks of ~16M tokens. | |
| Usage: | |
| .venv/bin/python data/encode_full.py --raw data/TinyStoriesV2-GPT4-train.txt \ | |
| --out data/train_full.bin --tok data/tokenizer.json | |
| """ | |
| import argparse, time | |
| from pathlib import Path | |
| import numpy as np | |
| from data.tokenizer import load_tokenizer | |
| def main(): | |
| ap = argparse.ArgumentParser() | |
| ap.add_argument("--raw", default="data/TinyStoriesV2-GPT4-train.txt") | |
| ap.add_argument("--out", default="data/train_full.bin") | |
| ap.add_argument("--tok", default="data/tokenizer.json") | |
| ap.add_argument("--chunk", type=int, default=16_000_000) | |
| ap.add_argument("--max-tokens", type=int, default=600_000_000) | |
| args = ap.parse_args() | |
| tok = load_tokenizer(args.tok) | |
| eot = tok.token_to_id("<|endoftext|>") | |
| out = Path(args.out) | |
| out.parent.mkdir(parents=True, exist_ok=True) | |
| total, buf = 0, [] | |
| t0 = time.time() | |
| with open(args.raw, "rb") as f, open(out, "wb") as g: | |
| for raw in f: | |
| line = raw.decode("utf-8", errors="replace").strip() | |
| if not line: | |
| continue | |
| ids = tok.encode(line).ids | |
| buf.extend(ids) | |
| buf.append(eot) | |
| total += len(ids) + 1 | |
| if len(buf) >= args.chunk or total >= args.max_tokens: | |
| np.asarray(buf, dtype=np.uint16).tofile(g) | |
| buf.clear() | |
| print(f"encoded {total:,} tokens in {time.time()-t0:.0f}s " | |
| f"({total/(time.time()-t0):,.0f} tok/s)", flush=True) | |
| if total >= args.max_tokens: | |
| break | |
| if buf: | |
| np.asarray(buf, dtype=np.uint16).tofile(g) | |
| print(f"done: {total:,} tokens -> {out} ({out.stat().st_size/1e9:.2f} GB)", flush=True) | |
| if __name__ == "__main__": | |
| main() | |