Instructions to use FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF", filename="LFM2.5-1.2B-Instruct-Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF 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/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
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/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
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/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
Use Docker
docker model run hf.co/FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF with Ollama:
ollama run hf.co/FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
- Unsloth Studio
How to use FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF to start chatting
- Pi
How to use FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF with Docker Model Runner:
docker model run hf.co/FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
- Lemonade
How to use FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull FerrellSyntheticIntelligence/Vitalis_LFM2.5_Cortex.GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Vitalis_LFM2.5_Cortex.GGUF-Q4_K_M
List all available models
lemonade list
| """ | |
| EvaluationProbe — Vitalis FSI | |
| Measures whether the system has learned to distinguish | |
| primitive speech acts after the curriculum. | |
| Speech acts measured: | |
| - question (interrogative) | |
| - instruction (imperative) | |
| - explanation (declarative/expository) | |
| No labeled audio required at runtime — | |
| uses helix prototype clustering for zero-shot evaluation. | |
| """ | |
| import numpy as np | |
| from pathlib import Path | |
| from typing import Dict, List, Tuple | |
| from src.dream_engine.helix_memory import HelixMemory | |
| from src.hdc_encoder.encoder import encode | |
| from src.audio_ear.feature_extractor import extract_features | |
| class EvaluationProbe: | |
| N_CLUSTERS = 3 | |
| LABELS = ["question", "instruction", "explanation"] | |
| def __init__(self, helix_path: Path = None): | |
| self.helix_path = helix_path or ( | |
| Path.home() / ".vitalis_workspace" / "helix_memory.pkl" | |
| ) | |
| self.helix = HelixMemory(self.helix_path) | |
| def _build_centroids(self) -> Dict[str, np.ndarray]: | |
| """ | |
| Build one centroid per speech act by clustering | |
| all stored helix prototypes. | |
| """ | |
| if len(self.helix.entries) < self.N_CLUSTERS: | |
| raise RuntimeError( | |
| f"Need at least {self.N_CLUSTERS} helix codes. " | |
| f"Run curriculum first." | |
| ) | |
| all_protos = np.stack( | |
| [proto for _, proto, _, _ in self.helix.entries] | |
| ).astype(np.int8) | |
| # Seeded k-means for reproducibility | |
| rng = np.random.default_rng(42) | |
| idx = rng.choice(len(all_protos), self.N_CLUSTERS, replace=False) | |
| centroids = all_protos[idx].copy() | |
| for _ in range(6): | |
| dists = np.stack([ | |
| np.sum(all_protos != c, axis=1) for c in centroids | |
| ], axis=1) | |
| assigns = np.argmin(dists, axis=1) | |
| for i in range(self.N_CLUSTERS): | |
| mask = assigns == i | |
| if np.any(mask): | |
| summed = all_protos[mask].astype(np.int32).sum(axis=0) | |
| new_c = np.sign(summed).astype(np.int8) | |
| new_c[new_c == 0] = 1 | |
| centroids[i] = new_c | |
| return dict(zip(self.LABELS, centroids)) | |
| def _semantic_fingerprint(self, hv: np.ndarray) -> np.ndarray: | |
| """ | |
| Retrieve top-3 helix prototypes and XOR-bundle them. | |
| Reduces noise in raw hypervector. | |
| """ | |
| matches = self.helix.retrieve(hv, top_k=3) | |
| if not matches: | |
| return hv.copy() | |
| protos = [proto for proto, _ in matches] | |
| stacked = np.stack(protos).astype(np.int32).sum(axis=0) | |
| result = np.sign(stacked).astype(np.int8) | |
| result[result == 0] = 1 | |
| return result | |
| def evaluate_file( | |
| self, | |
| wav_path: Path, | |
| true_label: str, | |
| centroids: Dict[str, np.ndarray], | |
| ) -> Tuple[str, float, bool]: | |
| """Evaluate one audio file. Returns (predicted, confidence, correct).""" | |
| mfcc, prosody = extract_features(wav_path) | |
| raw_hv = encode(mfcc, prosody) | |
| semantic_hv = self._semantic_fingerprint(raw_hv) | |
| sims = { | |
| label: float(np.mean(semantic_hv == centroid)) | |
| for label, centroid in centroids.items() | |
| } | |
| predicted = max(sims, key=sims.get) | |
| confidence = sims[predicted] | |
| correct = predicted == true_label | |
| return predicted, confidence, correct | |
| def evaluate_directory(self, probe_dir: Path) -> Dict: | |
| """ | |
| Evaluate all wav files in probe_dir. | |
| Directory structure: probe_dir/label/file.wav | |
| """ | |
| if not probe_dir.exists(): | |
| return {"status": "probe_dir_not_found", "path": str(probe_dir)} | |
| centroids = self._build_centroids() | |
| results = {label: [] for label in self.LABELS} | |
| total = 0 | |
| correct = 0 | |
| for label_dir in probe_dir.iterdir(): | |
| if not label_dir.is_dir(): | |
| continue | |
| label = label_dir.name | |
| for wav in label_dir.glob("*.wav"): | |
| pred, conf, is_correct = self.evaluate_file( | |
| wav, label, centroids | |
| ) | |
| results[label].append({ | |
| "file": wav.name, | |
| "predicted": pred, | |
| "confidence": round(conf, 4), | |
| "correct": is_correct, | |
| }) | |
| total += 1 | |
| correct += int(is_correct) | |
| if total == 0: | |
| return {"status": "no_files_found"} | |
| per_class_acc = { | |
| label: round( | |
| sum(r["correct"] for r in items) / len(items), 4 | |
| ) if items else 0.0 | |
| for label, items in results.items() | |
| } | |
| return { | |
| "status": "complete", | |
| "overall_accuracy": round(correct / total, 4), | |
| "per_class": per_class_acc, | |
| "total_files": total, | |
| "helix_codes": len(self.helix.entries), | |
| "details": results, | |
| } | |
| def evaluate_helix_health(self) -> Dict: | |
| """ | |
| Evaluate helix memory health without audio files. | |
| Tests clustering quality and prototype diversity. | |
| """ | |
| if len(self.helix.entries) < 2: | |
| return {"status": "insufficient_data"} | |
| protos = np.stack( | |
| [p for _, p, _, _ in self.helix.entries] | |
| ).astype(np.float32) | |
| # Inter-prototype similarity matrix | |
| n = len(protos) | |
| sims = [] | |
| for i in range(n): | |
| for j in range(i + 1, n): | |
| sim = float(np.mean(protos[i] == protos[j])) | |
| sims.append(sim) | |
| avg_sim = float(np.mean(sims)) if sims else 0.0 | |
| diversity = round(1.0 - avg_sim, 4) | |
| usage_counts = [cnt for _, _, cnt, _ in self.helix.entries] | |
| return { | |
| "status": "healthy" if diversity > 0.1 else "low_diversity", | |
| "helix_codes": n, | |
| "diversity_score": diversity, | |
| "avg_similarity": round(avg_sim, 4), | |
| "total_ingestions": sum(usage_counts), | |
| "most_used_code": int(np.argmax(usage_counts)), | |
| } | |