Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,44 +1,44 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Blackjack State Extractor (0.8B)
|
| 3 |
-
emoji: "π"
|
| 4 |
-
colorFrom: yellow
|
| 5 |
-
colorTo: pink
|
| 6 |
-
sdk: gradio
|
| 7 |
-
sdk_version: 6.13.0
|
| 8 |
-
app_file: app.py
|
| 9 |
-
pinned: false
|
| 10 |
-
license: apache-2.0
|
| 11 |
-
hardware: zero-a10g
|
| 12 |
-
---
|
| 13 |
-
|
| 14 |
-
# Blackjack State Extractor β 0.8B
|
| 15 |
-
|
| 16 |
-
Smaller-model variant of the [2B Space](https://huggingface.co/spaces/davidr99/blackjack-state-extractor). Fine-tuned **Qwen3.5-0.8B** vision model that reads a blackjack web-app screenshot and either:
|
| 17 |
-
|
| 18 |
-
1. **Extracts the game state as structured JSON** (default prompt), or
|
| 19 |
-
2. **Answers a natural-language question** about the screenshot β e.g. *"What is the dealer's hand?"*, *"Should I hit or stand?"*, *"What's my balance?"*.
|
| 20 |
-
|
| 21 |
-
## Models
|
| 22 |
-
|
| 23 |
-
- Base: [`unsloth/Qwen3.5-0.8B`](https://huggingface.co/unsloth/Qwen3.5-0.8B)
|
| 24 |
-
- LoRA adapter: [`davidr99/qwen35-08b-blackjack-reasoning-lora-
|
| 25 |
-
- Training data: [`davidr99/blackjack-wp-reasoning-
|
| 26 |
-
|
| 27 |
-
Trained with Unsloth's `FastVisionModel` on Colab L4 (bf16 LoRA, r=16, 1 epoch).
|
| 28 |
-
|
| 29 |
-
## Why a smaller model?
|
| 30 |
-
|
| 31 |
-
For OCR-style structured extraction tasks like this one, the LLM portion of a VLM is rarely the bottleneck β the vision encoder does most of the work and is the same size in both 0.8B and 2B variants. Trade-offs vs the 2B:
|
| 32 |
-
|
| 33 |
-
- ~2.5Γ smaller VRAM footprint (~2 GB vs ~5 GB)
|
| 34 |
-
- Faster decoding once vision is encoded
|
| 35 |
-
- Slightly lower JSON field accuracy (~5β10 percentage points), most pronounced on small text fields like `result`
|
| 36 |
-
- May struggle more with strategy-style Q&A that requires reasoning capacity
|
| 37 |
-
|
| 38 |
-
## Output format
|
| 39 |
-
|
| 40 |
-
The model thinks step-by-step inside `<think>...</think>`, then emits either the JSON state or a short natural-language answer depending on the prompt.
|
| 41 |
-
|
| 42 |
-
## Hardware
|
| 43 |
-
|
| 44 |
-
This Space targets ZeroGPU (free H200 bursts). Inference takes ~1-3 s per request on GPU; on CPU it's ~10-30 s.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Blackjack State Extractor (0.8B)
|
| 3 |
+
emoji: "π"
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: pink
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 6.13.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: apache-2.0
|
| 11 |
+
hardware: zero-a10g
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Blackjack State Extractor β 0.8B
|
| 15 |
+
|
| 16 |
+
Smaller-model variant of the [2B Space](https://huggingface.co/spaces/davidr99/blackjack-state-extractor). Fine-tuned **Qwen3.5-0.8B** vision model that reads a blackjack web-app screenshot and either:
|
| 17 |
+
|
| 18 |
+
1. **Extracts the game state as structured JSON** (default prompt), or
|
| 19 |
+
2. **Answers a natural-language question** about the screenshot β e.g. *"What is the dealer's hand?"*, *"Should I hit or stand?"*, *"What's my balance?"*.
|
| 20 |
+
|
| 21 |
+
## Models
|
| 22 |
+
|
| 23 |
+
- Base: [`unsloth/Qwen3.5-0.8B`](https://huggingface.co/unsloth/Qwen3.5-0.8B)
|
| 24 |
+
- LoRA adapter: [`davidr99/qwen35-08b-blackjack-reasoning-lora-v4`](https://huggingface.co/davidr99/qwen35-08b-blackjack-reasoning-lora-v4)
|
| 25 |
+
- Training data: [`davidr99/blackjack-wp-reasoning-v4`](https://huggingface.co/datasets/davidr99/blackjack-wp-reasoning-v4)
|
| 26 |
+
|
| 27 |
+
Trained with Unsloth's `FastVisionModel` on Colab L4 (bf16 LoRA, r=16, 1 epoch).
|
| 28 |
+
|
| 29 |
+
## Why a smaller model?
|
| 30 |
+
|
| 31 |
+
For OCR-style structured extraction tasks like this one, the LLM portion of a VLM is rarely the bottleneck β the vision encoder does most of the work and is the same size in both 0.8B and 2B variants. Trade-offs vs the 2B:
|
| 32 |
+
|
| 33 |
+
- ~2.5Γ smaller VRAM footprint (~2 GB vs ~5 GB)
|
| 34 |
+
- Faster decoding once vision is encoded
|
| 35 |
+
- Slightly lower JSON field accuracy (~5β10 percentage points), most pronounced on small text fields like `result`
|
| 36 |
+
- May struggle more with strategy-style Q&A that requires reasoning capacity
|
| 37 |
+
|
| 38 |
+
## Output format
|
| 39 |
+
|
| 40 |
+
The model thinks step-by-step inside `<think>...</think>`, then emits either the JSON state or a short natural-language answer depending on the prompt.
|
| 41 |
+
|
| 42 |
+
## Hardware
|
| 43 |
+
|
| 44 |
+
This Space targets ZeroGPU (free H200 bursts). Inference takes ~1-3 s per request on GPU; on CPU it's ~10-30 s.
|