Text Generation
Safetensors
GGUF
English
reasoning
reinforcement-learning
grpo
small-language-model
samsung-ennovatex
conversational
Instructions to use OmnipotentFool/Aurvion 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 OmnipotentFool/Aurvion 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 OmnipotentFool/Aurvion:Q4_K_M # Run inference directly in the terminal: llama cli -hf OmnipotentFool/Aurvion:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf OmnipotentFool/Aurvion:Q4_K_M # Run inference directly in the terminal: llama cli -hf OmnipotentFool/Aurvion: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 OmnipotentFool/Aurvion:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf OmnipotentFool/Aurvion: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 OmnipotentFool/Aurvion:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf OmnipotentFool/Aurvion:Q4_K_M
Use Docker
docker model run hf.co/OmnipotentFool/Aurvion:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use OmnipotentFool/Aurvion with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OmnipotentFool/Aurvion" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OmnipotentFool/Aurvion", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OmnipotentFool/Aurvion:Q4_K_M
- Ollama
How to use OmnipotentFool/Aurvion with Ollama:
ollama run hf.co/OmnipotentFool/Aurvion:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use OmnipotentFool/Aurvion with Docker Model Runner:
docker model run hf.co/OmnipotentFool/Aurvion:Q4_K_M
- Lemonade
How to use OmnipotentFool/Aurvion with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull OmnipotentFool/Aurvion:Q4_K_M
Run and chat with the model
lemonade run user.Aurvion-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download llama.cpp/examples/model-conversion/scripts/causal/compare-logits.py from OmnipotentFool/Aurvion: direct link, hf CLI and curl.
- Browser
- Download file 3.32 kB
-
https://huggingface.co/OmnipotentFool/Aurvion/resolve/main/llama.cpp/examples/model-conversion/scripts/causal/compare-logits.py
- Command line
-
hf download hf://OmnipotentFool/Aurvion/llama.cpp/examples/model-conversion/scripts/causal/compare-logits.py
-
curl -L -o compare-logits.py https://huggingface.co/OmnipotentFool/Aurvion/resolve/main/llama.cpp/examples/model-conversion/scripts/causal/compare-logits.py
3.32 kB
| #!/usr/bin/env python3 | |
| import sys | |
| import numpy as np | |
| from pathlib import Path | |
| import os | |
| # Add utils directory to path for direct script execution | |
| sys.path.insert(0, str(Path(__file__).parent.parent / "utils")) | |
| from common import get_model_name_from_env_path, compare_tokens, exit_with_warning # type: ignore[import-not-found, ty:unresolved-import] | |
| def quick_logits_check(pytorch_file, llamacpp_file): | |
| """Lightweight sanity check before NMSE""" | |
| try: | |
| pytorch_logits = np.fromfile(pytorch_file, dtype=np.float32) | |
| llamacpp_logits = np.fromfile(llamacpp_file, dtype=np.float32) | |
| except Exception as e: | |
| print(f"β NOK: Failed to load files - {e}") | |
| return False | |
| # Check shapes match | |
| if pytorch_logits.shape != llamacpp_logits.shape: | |
| print(f"β NOK: Shape mismatch - PyTorch: {pytorch_logits.shape}, llama.cpp: {llamacpp_logits.shape}") | |
| return False | |
| # Calculate key metrics | |
| diff = pytorch_logits - llamacpp_logits | |
| abs_diff = np.abs(diff) | |
| max_diff = np.max(abs_diff) | |
| # Get top 10 predictions from both models | |
| pytorch_top10 = np.argsort(pytorch_logits)[-10:][::-1] | |
| llamacpp_top10 = np.argsort(llamacpp_logits)[-10:][::-1] | |
| print(f"Top 10 PyTorch logits: {pytorch_logits[pytorch_top10]}") | |
| print(f"Top 10 llama.cpp logits: {llamacpp_logits[llamacpp_top10]}") | |
| print(f"Max absolute difference: {max_diff:.4f}") | |
| return True | |
| def main(): | |
| model_path = os.environ.get('MODEL_PATH') | |
| model_name = get_model_name_from_env_path('MODEL_PATH') | |
| data_dir = Path("data") | |
| pytorch_file = data_dir / f"pytorch-{model_name}.bin" | |
| llamacpp_model_name = get_model_name_from_env_path('CONVERTED_MODEL') | |
| print(f"Using converted model: {llamacpp_model_name}") | |
| llamacpp_file = data_dir / f"llamacpp-{llamacpp_model_name}.bin" | |
| if not pytorch_file.exists(): | |
| print(f"Error: PyTorch logits file not found: {pytorch_file}") | |
| print("Please run scripts/run-org-model.sh first to generate this file.") | |
| sys.exit(1) | |
| if not llamacpp_file.exists(): | |
| print(f"Error: llama.cpp logits file not found: {llamacpp_file}") | |
| print("Please run scripts/run-converted-model.sh first to generate this file.") | |
| sys.exit(1) | |
| print("Checked all required files were found. Proceeding...\n") | |
| # Verify tokens as they are a prerequisite for logits comparison. | |
| print("π Token Comparison Check") | |
| print("=" * 40) | |
| if not compare_tokens(f"pytorch-{model_name}", f"llamacpp-{llamacpp_model_name}"): | |
| exit_with_warning("\nβ Token mismatch detected", model_path) | |
| print() | |
| print("π GGML Model Validation for model ", model_name) | |
| print("=" * 40) | |
| print(f"PyTorch logits : {pytorch_file}") | |
| print(f"llama.cpp logits: {llamacpp_file}") | |
| print() | |
| success = quick_logits_check(pytorch_file, llamacpp_file) | |
| # Exit with appropriate code | |
| if success: | |
| print("β OK: Lightweight model check successful!") | |
| print(" Ok to proceed with NMSE check...") | |
| sys.exit(0) | |
| else: | |
| exit_with_warning(f"β NOK: Top 10 predictions don't match - generation will differ", model_path) | |
| if __name__ == "__main__": | |
| main() | |