Instructions to use philippotiger/forecast-extractor 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 philippotiger/forecast-extractor 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 philippotiger/forecast-extractor:F16 # Run inference directly in the terminal: llama cli -hf philippotiger/forecast-extractor:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf philippotiger/forecast-extractor:F16 # Run inference directly in the terminal: llama cli -hf philippotiger/forecast-extractor:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf philippotiger/forecast-extractor:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf philippotiger/forecast-extractor:F16
Use Docker
docker model run hf.co/philippotiger/forecast-extractor:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use philippotiger/forecast-extractor with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "philippotiger/forecast-extractor" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "philippotiger/forecast-extractor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/philippotiger/forecast-extractor:F16
- Ollama
How to use philippotiger/forecast-extractor with Ollama:
ollama run hf.co/philippotiger/forecast-extractor:F16
- Unsloth Desktop
- Pi
How to use philippotiger/forecast-extractor with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf philippotiger/forecast-extractor:F16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "philippotiger/forecast-extractor:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use philippotiger/forecast-extractor with Docker Model Runner:
docker model run hf.co/philippotiger/forecast-extractor:F16
- Lemonade
How to use philippotiger/forecast-extractor with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull philippotiger/forecast-extractor:F16
Run and chat with the model
lemonade run user.forecast-extractor-F16
List all available models
lemonade list
- Hermes Agent
How to use philippotiger/forecast-extractor with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf philippotiger/forecast-extractor:F16
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:9931/v1 hermes config set model.default philippotiger/forecast-extractor:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use philippotiger/forecast-extractor with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf philippotiger/forecast-extractor:F16
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:9931/v1 \ --custom-model-id "philippotiger/forecast-extractor:F16" \ --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"
Update README.md
Browse files123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990---license: mitbase_model: Qwen/Qwen2.5-3B-Instructlanguage:- enpipeline_tag: text-generationtags:- football- sports- json-extraction- gguf- lora- qwen2.5library_name: llama-cpp---# forecast-extractorA fine-tuned version of [Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct)for extracting structured JSON from football prediction messages (e.g. Telegram tip channels).## What it doesGiven a raw football prediction message, it returns a structured JSON array:```json[{"league": "La Liga","team_1": "Real Madrid","team_2": "Barcelona","prediction": "1X","date": "25/03/2026","odds": 1.42}]```Handles:- Single and multi-tip messages (up to 4 tips)- Bold unicode text (Telegram formatting)- Missing fields → null- Varied formats, emojis, noise## Models| File | Size | Description ||---|---|---|| `football-extractor-q4.gguf` | 1.8GB | Q4_K_M quantized — recommended || `football-extractor-f16.gguf` | 5.8GB | Full f16 precision |## Quick start### With llama-cpp-python (recommended)```pythonfrom llama_cpp import Llamaimport jsonllm = Llama(model_path="football-extractor-q4.gguf", n_ctx=2048, n_gpu_layers=-1)response = llm.create_chat_completion(messages=[{"role": "system", "content": "Extract structured data and return ONLY a valid JSON array. Keys: league, team_1, team_2, prediction, date, odds. Use null for missing fields."},{"role": "user", "content": "YOUR TIP TEXT HERE"}],temperature=0.0,max_tokens=512,)print(json.loads(response["choices"][0]["message"]["content"]))```### With Ollama```bashollama pull philippotiger/forecast-extractorollama run philippotiger/forecast-extractor```## Training details- **Base model:** Qwen/Qwen2.5-3B-Instruct- **Method:** QLoRA (4-bit NF4) with LoRA r=8- **Dataset:** 300 synthetic examples generated from real team data- 70% single-tip, 30% multi-tip (2-4 events)- 10 message templates with emoji injection, typos, missing fields- **Epochs:** 3- **Final val loss:** ~0.24## Intended useParsing football prediction messages from Telegram channels or similarsources into structured data for further processing or storage.
README.md+90-3