Image-to-Text
PEFT
Safetensors
GGUF
LiteRT-LM
vision
object-detection
marine-debris
environmental-ai
unsloth
lora
gemma-4
edge-ai
on-device
mobile
Eval Results (legacy)
conversational
Instructions to use asferrer/gemma-4-E2B-it-oceanguard-marine-debris with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use asferrer/gemma-4-E2B-it-oceanguard-marine-debris with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-4-e2b-it-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "asferrer/gemma-4-E2B-it-oceanguard-marine-debris") - LiteRT-LM
How to use asferrer/gemma-4-E2B-it-oceanguard-marine-debris with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install -U litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli litert-lm run \ --from-huggingface-repo=asferrer/gemma-4-E2B-it-oceanguard-marine-debris \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use asferrer/gemma-4-E2B-it-oceanguard-marine-debris 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 asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M # Run inference directly in the terminal: llama cli -hf asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M # Run inference directly in the terminal: llama cli -hf asferrer/gemma-4-E2B-it-oceanguard-marine-debris: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 asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf asferrer/gemma-4-E2B-it-oceanguard-marine-debris: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 asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M
Use Docker
docker model run hf.co/asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use asferrer/gemma-4-E2B-it-oceanguard-marine-debris with Ollama:
ollama run hf.co/asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M
- Unsloth Desktop
- Pi
How to use asferrer/gemma-4-E2B-it-oceanguard-marine-debris with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use asferrer/gemma-4-E2B-it-oceanguard-marine-debris with Docker Model Runner:
docker model run hf.co/asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M
- Lemonade
How to use asferrer/gemma-4-E2B-it-oceanguard-marine-debris with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M
Run and chat with the model
lemonade run user.gemma-4-E2B-it-oceanguard-marine-debris-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use asferrer/gemma-4-E2B-it-oceanguard-marine-debris with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M
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:8080/v1 hermes config set model.default asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use asferrer/gemma-4-E2B-it-oceanguard-marine-debris with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M
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:8080/v1 \ --custom-model-id "asferrer/gemma-4-E2B-it-oceanguard-marine-debris:Q4_K_M" \ --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"
Upload best LoRA adapter (auto_promote_best)
Browse files
README.md
CHANGED
|
@@ -1,391 +1,210 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
base_model: google/gemma-4-E2B-it
|
| 4 |
library_name: peft
|
|
|
|
| 5 |
tags:
|
| 6 |
-
-
|
| 7 |
-
- object-detection
|
| 8 |
-
- marine-debris
|
| 9 |
-
- environmental-ai
|
| 10 |
-
- unsloth
|
| 11 |
- lora
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
-
|
| 16 |
-
- mobile
|
| 17 |
-
datasets:
|
| 18 |
-
- cleansea
|
| 19 |
-
- ocean_garbage
|
| 20 |
-
- neural_ocean
|
| 21 |
-
language:
|
| 22 |
-
- en
|
| 23 |
-
pipeline_tag: image-to-text
|
| 24 |
-
metrics:
|
| 25 |
-
- mAP
|
| 26 |
-
model-index:
|
| 27 |
-
- name: gemma-4-E2B-it-oceanguard-marine-debris
|
| 28 |
-
results:
|
| 29 |
-
- task:
|
| 30 |
-
type: object-detection
|
| 31 |
-
name: Marine Debris Detection (open-vocabulary, 8-class collapse)
|
| 32 |
-
dataset:
|
| 33 |
-
type: oceanguard-merged-marine-debris
|
| 34 |
-
name: OceanGuard merged hold-out (CleanSea + Ocean_garbage + Neural_Ocean)
|
| 35 |
-
metrics:
|
| 36 |
-
- type: mAP@0.5
|
| 37 |
-
value: 0.3253
|
| 38 |
-
- type: mAP@0.5_delta_vs_base
|
| 39 |
-
value: 0.2329
|
| 40 |
---
|
| 41 |
|
| 42 |
-
#
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
## Training
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
| Base model | `unsloth/gemma-4-E2B-it` |
|
| 139 |
-
| LoRA `r` / `α` / dropout | 16 / 32 / 0 |
|
| 140 |
-
| Trainable parameters | 31 039 488 (0.60 % of the 5.15 B base) |
|
| 141 |
-
| Target modules | language head linear layers; vision tower frozen |
|
| 142 |
-
| Optimiser | `adamw_8bit` (Unsloth fused), `lr = 1e-4` cosine schedule, `weight_decay = 0.01`, `warmup_ratio = 0.1` |
|
| 143 |
-
| Batch size | 1 per device × 32 gradient accumulation = effective 32 |
|
| 144 |
-
| Sequence length / image token budget | 1 536 / 128 |
|
| 145 |
-
| Precision | bf16 |
|
| 146 |
-
| Epochs | 3 |
|
| 147 |
-
| Steps | 1 281 |
|
| 148 |
-
| Seed | 42 |
|
| 149 |
-
| Loss | causal-LM over the `box_2d`+`label`+`material` JSON tokens |
|
| 150 |
-
|
| 151 |
-
### Convergence
|
| 152 |
-
|
| 153 |
-
Loss decreased monotonically from **15.01** at step 10 to **0.456** at step 1 281; the
|
| 154 |
-
last 20 logging windows had a standard deviation of **0.0092** and a minimum loss of
|
| 155 |
-
**0.446** at step 1 230, indicating a clean cosine landing with no late-stage divergence.
|
| 156 |
-
|
| 157 |
-
### Hardware and wall-clock
|
| 158 |
-
|
| 159 |
-
- 1× NVIDIA RTX 5090 (32 GiB GDDR7), Windows 11, CUDA 12.8, PyTorch 2.7
|
| 160 |
-
- Training wall-clock: **6 h 53 min** (24 777 s) for `exp10_real_full`
|
| 161 |
-
- Deployment target: Samsung Galaxy S22 Ultra (Exynos 2200) via
|
| 162 |
-
[LiteRT-LM 0.11.0](https://github.com/google-ai-edge/LiteRT-LM)
|
| 163 |
-
|
| 164 |
-
### Software
|
| 165 |
-
|
| 166 |
-
`unsloth` 2026.5.2 · `transformers` 5.5.0 · `peft` · `trl` · `accelerate` · `bitsandbytes` ·
|
| 167 |
-
`torch` 2.7.0+cu128.
|
| 168 |
-
|
| 169 |
-
The complete reproducible pipeline (`prepare_datasets → generate_configs → run_experiments
|
| 170 |
-
→ eval_grid → collect_results → auto_promote_best`) is published in the source repository
|
| 171 |
-
under `OceanguardAI-App/finetune/experiments/`.
|
| 172 |
|
| 173 |
## Evaluation
|
| 174 |
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
###
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
##
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
##
|
| 271 |
-
|
| 272 |
-
-
|
| 273 |
-
backgrounds (e.g. fishing nets with rocky shorelines). The model may exploit context
|
| 274 |
-
cues that do not generalise across geographies.
|
| 275 |
-
- **Sensitive categories.** The `syringe` / `medical waste` class is rare and high-stakes;
|
| 276 |
-
positive detections should trigger human handling protocols rather than autonomous
|
| 277 |
-
action.
|
| 278 |
-
- **Citizen-science abuse vectors.** As with any open-vocabulary detector, the model can
|
| 279 |
-
be prompted to label arbitrary objects; downstream applications should constrain
|
| 280 |
-
inputs to the marine-debris domain and filter implausible outputs (the OceanGuard app
|
| 281 |
-
does this via `LABEL_TO_TYPE` and the canonical 11-class projection in
|
| 282 |
-
`EnvironmentalImpact.IMPACT_MAP`).
|
| 283 |
-
- **Privacy.** Photos analysed on-device in OceanGuard never leave the phone; this
|
| 284 |
-
adapter itself processes no user data. When used outside the app, downstream operators
|
| 285 |
-
are responsible for compliance with applicable privacy regulation.
|
| 286 |
-
|
| 287 |
-
## How to Use
|
| 288 |
-
|
| 289 |
-
```python
|
| 290 |
-
from unsloth import FastVisionModel
|
| 291 |
-
|
| 292 |
-
model, tokenizer = FastVisionModel.from_pretrained(
|
| 293 |
-
"unsloth/gemma-4-E2B-it",
|
| 294 |
-
load_in_4bit=True,
|
| 295 |
-
)
|
| 296 |
-
model.load_adapter(
|
| 297 |
-
"asferrer/gemma-4-E2B-it-oceanguard-marine-debris",
|
| 298 |
-
adapter_name="oceanguard",
|
| 299 |
-
)
|
| 300 |
-
model.set_adapter("oceanguard")
|
| 301 |
-
FastVisionModel.for_inference(model)
|
| 302 |
-
|
| 303 |
-
# Use the exact DETECTION_PROMPT shipped in the Android app — see
|
| 304 |
-
# docs/submission/notebook_finetune.ipynb for the verbatim string and helper.
|
| 305 |
-
```
|
| 306 |
-
|
| 307 |
-
A fully reproducible end-to-end example (image loading, inference, JSON parsing,
|
| 308 |
-
visualisation and quantitative evaluation) lives at
|
| 309 |
-
[`docs/submission/notebook_finetune.ipynb`](https://github.com/asferrer/OceanguardAI-App/blob/main/docs/submission/notebook_finetune.ipynb)
|
| 310 |
-
in the source repository.
|
| 311 |
-
|
| 312 |
-
## License and Citation
|
| 313 |
-
|
| 314 |
-
- **LoRA adapter** — Apache 2.0
|
| 315 |
-
- **Base model** — `google/gemma-4-E2B-it`, subject to the Gemma Terms of Use
|
| 316 |
-
- **Training datasets** — source-dataset licenses apply (CC-BY or equivalent; see dataset
|
| 317 |
-
cards)
|
| 318 |
-
|
| 319 |
-
```bibtex
|
| 320 |
-
@misc{sanchezferrer2026oceanguard_adapter,
|
| 321 |
-
author = {S{\'a}nchez-Ferrer, Alejandro},
|
| 322 |
-
title = {{Gemma 4 E2B OceanGuard Marine Debris LoRA Adapter}},
|
| 323 |
-
year = {2026},
|
| 324 |
-
howpublished = {HuggingFace Model Hub},
|
| 325 |
-
note = {LoRA adapter for google/gemma-4-E2B-it. Apache 2.0.},
|
| 326 |
-
url = {https://huggingface.co/asferrer/gemma-4-E2B-it-oceanguard-marine-debris}
|
| 327 |
-
}
|
| 328 |
-
|
| 329 |
-
@misc{sanchezferrer2026oceanguard_app,
|
| 330 |
-
author = {S{\'a}nchez-Ferrer, Alejandro},
|
| 331 |
-
title = {{OceanGuard AI: Fully Offline Marine Debris Intelligence with Gemma 4 and Two-Phase Tool Calling}},
|
| 332 |
-
year = {2026},
|
| 333 |
-
howpublished = {Kaggle Gemma 4 Good Hackathon (Global Resilience track)},
|
| 334 |
-
url = {https://github.com/asferrer/OceanguardAI}
|
| 335 |
-
}
|
| 336 |
-
```
|
| 337 |
-
|
| 338 |
-
## Related Publications by the Author
|
| 339 |
-
|
| 340 |
-
This adapter is the latest iteration of an ongoing line of research on automated
|
| 341 |
-
detection and recognition of underwater anthropogenic debris.
|
| 342 |
-
|
| 343 |
-
### Peer-reviewed papers
|
| 344 |
-
|
| 345 |
-
1. **Sánchez-Ferrer, A.**, Valero-Mas, J. J., Gallego, A. J., & Calvo-Zaragoza, J. (2023).
|
| 346 |
-
*An experimental study on marine debris location and recognition using object
|
| 347 |
-
detection.*
|
| 348 |
-
**Pattern Recognition Letters**, 168, 154–161.
|
| 349 |
-
[https://doi.org/10.1016/j.patrec.2022.12.019](https://www.sciencedirect.com/science/article/pii/S0167865522003889?via%3Dihub)
|
| 350 |
-
|
| 351 |
-
2. **Sánchez-Ferrer, A.**, Gallego, A. J., Valero-Mas, J. J., & Calvo-Zaragoza, J. (2022).
|
| 352 |
-
*The CleanSea Set: A Benchmark Corpus for Underwater Debris Detection and
|
| 353 |
-
Recognition.*
|
| 354 |
-
In *Iberian Conference on Pattern Recognition and Image Analysis (IbPRIA 2022)*,
|
| 355 |
-
Lecture Notes in Computer Science, Springer.
|
| 356 |
-
[doi.org/10.1007/978-3-031-04881-4_49](https://link.springer.com/chapter/10.1007/978-3-031-04881-4_49)
|
| 357 |
-
|
| 358 |
-
### Theses
|
| 359 |
-
|
| 360 |
-
3. **Sánchez-Ferrer, A.** (2024). *Modelos de difusión aplicados a la detección de
|
| 361 |
-
objetos en el fondo marino.* Master's Thesis, Universidad de Alicante.
|
| 362 |
-
[rua.ua.es/…/88244474](https://rua.ua.es/entities/publication/88244474-6165-4cd9-a4af-68eff29d65c6)
|
| 363 |
-
|
| 364 |
-
4. **Sánchez-Ferrer, A.** (2021). *Deep Learning aplicado a la detección de residuos en
|
| 365 |
-
el fondo marino.* Bachelor's Thesis, Universidad de Alicante.
|
| 366 |
-
[rua.ua.es/…/92c34588](https://rua.ua.es/entities/publication/92c34588-9842-4ec3-8b15-97a8ce718e04)
|
| 367 |
-
|
| 368 |
-
### Applied research
|
| 369 |
-
|
| 370 |
-
5. **Sánchez-Ferrer, A.** (2025). *OceanGuard AI: Mapping and Mitigating Marine
|
| 371 |
-
Pollution.* Kaggle hackathon write-up.
|
| 372 |
-
[Kaggle write-up](https://www.kaggle.com/competitions/google-gemma-3n-hackathon/writeups/oceanguard-ai-mapping-and-mitigating-marine-pollut)
|
| 373 |
-
|
| 374 |
-
The CleanSea corpus introduced in (2) is one of the three sources used to train this
|
| 375 |
-
adapter; the detection methodology developed in (1) defines the marine-debris recognition
|
| 376 |
-
task that this fine-tune operationalises on-device with Gemma 4 E2B; (3) and (4) lay the
|
| 377 |
-
foundational work on which the present model card builds.
|
| 378 |
-
|
| 379 |
-
## Acknowledgments
|
| 380 |
-
|
| 381 |
-
- **Google DeepMind** for releasing Gemma 4 under terms that enable open research and
|
| 382 |
-
on-device deployment.
|
| 383 |
-
- **The Unsloth team** for the FastVisionModel implementation that makes a Gemma 4
|
| 384 |
-
vision-language fine-tune tractable on a single workstation GPU.
|
| 385 |
-
- **CleanSea, Ocean_garbage and Neural_Ocean** dataset authors for releasing
|
| 386 |
-
marine-debris annotations under permissive terms.
|
| 387 |
-
- **Google AI Edge / LiteRT-LM** team for the on-device runtime that hosts the base model
|
| 388 |
-
in the OceanGuard Android app.
|
| 389 |
-
- **Pattern Recognition and Artificial Intelligence (PRAI) group, Universidad de
|
| 390 |
-
Alicante** — research group hosting the doctoral programme under which this work is
|
| 391 |
-
carried out, and co-authors of the prior publications cited above.
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: unsloth/gemma-4-e2b-it-unsloth-bnb-4bit
|
|
|
|
| 3 |
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
+
- base_model:adapter:unsloth/gemma-4-e2b-it-unsloth-bnb-4bit
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
- lora
|
| 8 |
+
- sft
|
| 9 |
+
- transformers
|
| 10 |
+
- trl
|
| 11 |
+
- unsloth
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# Model Card for Model ID
|
| 15 |
+
|
| 16 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
## Model Details
|
| 21 |
+
|
| 22 |
+
### Model Description
|
| 23 |
+
|
| 24 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
- **Developed by:** [More Information Needed]
|
| 29 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 30 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 31 |
+
- **Model type:** [More Information Needed]
|
| 32 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 33 |
+
- **License:** [More Information Needed]
|
| 34 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 35 |
+
|
| 36 |
+
### Model Sources [optional]
|
| 37 |
+
|
| 38 |
+
<!-- Provide the basic links for the model. -->
|
| 39 |
+
|
| 40 |
+
- **Repository:** [More Information Needed]
|
| 41 |
+
- **Paper [optional]:** [More Information Needed]
|
| 42 |
+
- **Demo [optional]:** [More Information Needed]
|
| 43 |
+
|
| 44 |
+
## Uses
|
| 45 |
+
|
| 46 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 47 |
+
|
| 48 |
+
### Direct Use
|
| 49 |
+
|
| 50 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 51 |
+
|
| 52 |
+
[More Information Needed]
|
| 53 |
+
|
| 54 |
+
### Downstream Use [optional]
|
| 55 |
+
|
| 56 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 57 |
+
|
| 58 |
+
[More Information Needed]
|
| 59 |
+
|
| 60 |
+
### Out-of-Scope Use
|
| 61 |
+
|
| 62 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 63 |
+
|
| 64 |
+
[More Information Needed]
|
| 65 |
+
|
| 66 |
+
## Bias, Risks, and Limitations
|
| 67 |
+
|
| 68 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 69 |
+
|
| 70 |
+
[More Information Needed]
|
| 71 |
+
|
| 72 |
+
### Recommendations
|
| 73 |
+
|
| 74 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 75 |
+
|
| 76 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 77 |
+
|
| 78 |
+
## How to Get Started with the Model
|
| 79 |
+
|
| 80 |
+
Use the code below to get started with the model.
|
| 81 |
+
|
| 82 |
+
[More Information Needed]
|
| 83 |
+
|
| 84 |
+
## Training Details
|
| 85 |
+
|
| 86 |
+
### Training Data
|
| 87 |
+
|
| 88 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 89 |
+
|
| 90 |
+
[More Information Needed]
|
| 91 |
+
|
| 92 |
+
### Training Procedure
|
| 93 |
+
|
| 94 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 95 |
+
|
| 96 |
+
#### Preprocessing [optional]
|
| 97 |
+
|
| 98 |
+
[More Information Needed]
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
#### Training Hyperparameters
|
| 102 |
+
|
| 103 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 104 |
+
|
| 105 |
+
#### Speeds, Sizes, Times [optional]
|
| 106 |
+
|
| 107 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 108 |
+
|
| 109 |
+
[More Information Needed]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
|
| 111 |
## Evaluation
|
| 112 |
|
| 113 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 114 |
+
|
| 115 |
+
### Testing Data, Factors & Metrics
|
| 116 |
+
|
| 117 |
+
#### Testing Data
|
| 118 |
+
|
| 119 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 120 |
+
|
| 121 |
+
[More Information Needed]
|
| 122 |
+
|
| 123 |
+
#### Factors
|
| 124 |
+
|
| 125 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 126 |
+
|
| 127 |
+
[More Information Needed]
|
| 128 |
+
|
| 129 |
+
#### Metrics
|
| 130 |
+
|
| 131 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 132 |
+
|
| 133 |
+
[More Information Needed]
|
| 134 |
+
|
| 135 |
+
### Results
|
| 136 |
+
|
| 137 |
+
[More Information Needed]
|
| 138 |
+
|
| 139 |
+
#### Summary
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
## Model Examination [optional]
|
| 144 |
+
|
| 145 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 146 |
+
|
| 147 |
+
[More Information Needed]
|
| 148 |
+
|
| 149 |
+
## Environmental Impact
|
| 150 |
+
|
| 151 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 152 |
+
|
| 153 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 154 |
+
|
| 155 |
+
- **Hardware Type:** [More Information Needed]
|
| 156 |
+
- **Hours used:** [More Information Needed]
|
| 157 |
+
- **Cloud Provider:** [More Information Needed]
|
| 158 |
+
- **Compute Region:** [More Information Needed]
|
| 159 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 160 |
+
|
| 161 |
+
## Technical Specifications [optional]
|
| 162 |
+
|
| 163 |
+
### Model Architecture and Objective
|
| 164 |
+
|
| 165 |
+
[More Information Needed]
|
| 166 |
+
|
| 167 |
+
### Compute Infrastructure
|
| 168 |
+
|
| 169 |
+
[More Information Needed]
|
| 170 |
+
|
| 171 |
+
#### Hardware
|
| 172 |
+
|
| 173 |
+
[More Information Needed]
|
| 174 |
+
|
| 175 |
+
#### Software
|
| 176 |
+
|
| 177 |
+
[More Information Needed]
|
| 178 |
+
|
| 179 |
+
## Citation [optional]
|
| 180 |
+
|
| 181 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 182 |
+
|
| 183 |
+
**BibTeX:**
|
| 184 |
+
|
| 185 |
+
[More Information Needed]
|
| 186 |
+
|
| 187 |
+
**APA:**
|
| 188 |
+
|
| 189 |
+
[More Information Needed]
|
| 190 |
+
|
| 191 |
+
## Glossary [optional]
|
| 192 |
+
|
| 193 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 194 |
+
|
| 195 |
+
[More Information Needed]
|
| 196 |
+
|
| 197 |
+
## More Information [optional]
|
| 198 |
+
|
| 199 |
+
[More Information Needed]
|
| 200 |
+
|
| 201 |
+
## Model Card Authors [optional]
|
| 202 |
+
|
| 203 |
+
[More Information Needed]
|
| 204 |
+
|
| 205 |
+
## Model Card Contact
|
| 206 |
+
|
| 207 |
+
[More Information Needed]
|
| 208 |
+
### Framework versions
|
| 209 |
+
|
| 210 |
+
- PEFT 0.19.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|