Instructions to use Sekoya/mon-qwen-finetune with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Sekoya/mon-qwen-finetune with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Sekoya/mon-qwen-finetune", filename="alpha-signal-q4km.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Sekoya/mon-qwen-finetune with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Sekoya/mon-qwen-finetune # Run inference directly in the terminal: llama-cli -hf Sekoya/mon-qwen-finetune
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Sekoya/mon-qwen-finetune # Run inference directly in the terminal: llama-cli -hf Sekoya/mon-qwen-finetune
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 Sekoya/mon-qwen-finetune # Run inference directly in the terminal: ./llama-cli -hf Sekoya/mon-qwen-finetune
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 Sekoya/mon-qwen-finetune # Run inference directly in the terminal: ./build/bin/llama-cli -hf Sekoya/mon-qwen-finetune
Use Docker
docker model run hf.co/Sekoya/mon-qwen-finetune
- LM Studio
- Jan
- Ollama
How to use Sekoya/mon-qwen-finetune with Ollama:
ollama run hf.co/Sekoya/mon-qwen-finetune
- Unsloth Studio new
How to use Sekoya/mon-qwen-finetune 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 Sekoya/mon-qwen-finetune 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 Sekoya/mon-qwen-finetune to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Sekoya/mon-qwen-finetune to start chatting
- Docker Model Runner
How to use Sekoya/mon-qwen-finetune with Docker Model Runner:
docker model run hf.co/Sekoya/mon-qwen-finetune
- Lemonade
How to use Sekoya/mon-qwen-finetune with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Sekoya/mon-qwen-finetune
Run and chat with the model
lemonade run user.mon-qwen-finetune-{{QUANT_TAG}}List all available models
lemonade list
Update readme.md
Browse files
readme.md
CHANGED
|
@@ -1 +1,49 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Modèle Alpha-Signal (explication simple)
|
| 2 |
+
|
| 3 |
+
## Entrées (ce que le modèle reçoit)
|
| 4 |
+
|
| 5 |
+
- **Du texte** : consignes en français (rôle d’analyste, demande de signal de trading, parfois une “actualité” fictive sur l’action).
|
| 6 |
+
- **Une ou plusieurs images** : graphiques boursiers en chandeliers (souvent avec RSI et bandes de Bollinger), en PNG.
|
| 7 |
+
- En usage classique : **1 graphique** par requête.
|
| 8 |
+
- En mode “temporel” : **plusieurs graphiques d’affilée** (ex. 8 fenêtres qui se suivent dans le temps).
|
| 9 |
+
|
| 10 |
+
Le modèle ne reçoit pas de vidéo brute ni de fichiers Excel : **images + texte**, dans un format de conversation (messages type chat).
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
## Sorties (ce que le modèle produit)
|
| 15 |
+
|
| 16 |
+
- **Uniquement du texte**, sous forme de **JSON** (une réponse générée par le modèle).
|
| 17 |
+
|
| 18 |
+
**Format le plus courant (un seul graphique)** — champs typiques :
|
| 19 |
+
|
| 20 |
+
- `action` : BUY, SELL ou HOLD
|
| 21 |
+
- `confidence` : nombre entre 0 et 1
|
| 22 |
+
- `entry_price`, `stop_loss`, `take_profit`
|
| 23 |
+
- `reasoning` : courte explication en texte
|
| 24 |
+
|
| 25 |
+
**Format en mode analyse temporelle (plusieurs graphiques)** — champs typiques :
|
| 26 |
+
|
| 27 |
+
- `action`, `confidence`, `trend` (ex. UPTREND / DOWNTREND / SIDEWAYS), `reasoning`
|
| 28 |
+
|
| 29 |
+
Il n’y a pas d’image en sortie : **toujours du texte structuré (JSON)**.
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## Sur quoi le modèle a été entraîné / aligné (dans ce projet)
|
| 34 |
+
|
| 35 |
+
- **Modèle de base** : **Qwen2.5-VL-3B-Instruct** (modèle “vision + langue” déjà pré-entraîné par ses créateurs).
|
| 36 |
+
- **Données métier générées dans le projet** :
|
| 37 |
+
- Fenêtres de cours (ex. 60 jours), graphiques PNG synthétiques à partir de données de marché (ex. ticker type AAPL).
|
| 38 |
+
- Un texte d’“actualité” généré pour aller avec le graphique.
|
| 39 |
+
- Une **étiquette** : signal BUY / SELL / HOLD avec prix, stops, objectifs, etc.
|
| 40 |
+
- Le tout est stocké en lignes **JSONL** (fichier type `training_data.jsonl`).
|
| 41 |
+
- **Fine-tuning / alignement** :
|
| 42 |
+
- **SFT** (supervised) possible sur ces exemples (graphique + texte → réponse JSON).
|
| 43 |
+
- **DPO** (préférences) : le code compare des réponses “acceptées” vs “rejetées” pour rapprocher le modèle de ce que tu veux.
|
| 44 |
+
- **Extension temporelle** : même idée, mais avec **plusieurs images** dans le même prompt pour parler d’évolution dans le temps (pas un autre type de données magique : toujours des images de graphiques + texte).
|
| 45 |
+
|
| 46 |
+
En résumé : le modèle a été **spécialisé** sur **graphiques de trading + contexte textuel → décision de trading en JSON**, à partir du gros modèle Qwen2.5-VL-3B déjà existant.
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
|