Views
No views yet
1[
2 {
3 "league": "La Liga",
4 "team_1": "Real Madrid",
5 "team_2": "Barcelona",
6 "prediction": "1X",
7 "date": "25/03/2026",
8 "odds": 1.42
9 }
10]| File | Size | Description |
|---|---|---|
football-extractor-q4.gguf | 1.8GB | Q4_K_M quantized — recommended |
football-extractor-f16.gguf | 5.8GB | Full f16 precision |
1from llama_cpp import Llama
2import json
3
4llm = Llama(model_path="football-extractor-q4.gguf", n_ctx=2048, n_gpu_layers=-1)
5
6response = llm.create_chat_completion(
7 messages=[
8 {"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."},
9 {"role": "user", "content": "YOUR TIP TEXT HERE"}
10 ],
11 temperature=0.0,
12 max_tokens=512,
13)
14print(json.loads(response["choices"][0]["message"]["content"]))1ollama pull philippotiger/forecast-extractor
2ollama run philippotiger/forecast-extractor