Spaces:
Paused
Paused
Improve Space README with documentation
Browse files
README.md
CHANGED
|
@@ -10,4 +10,30 @@ app_file: app.py
|
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Pidgin Test
|
| 14 |
+
|
| 15 |
+
## Overview
|
| 16 |
+
|
| 17 |
+
This is a small test Space for trying out a LoRA adapter that fine-tunes
|
| 18 |
+
[`openai/gpt-oss-20b`](https://huggingface.co/openai/gpt-oss-20b) to reply
|
| 19 |
+
in Nigerian Pidgin English. It loads the base model, applies the
|
| 20 |
+
[`AnalyticsIntelligence/pidgin_oss`](https://huggingface.co/AnalyticsIntelligence/pidgin_oss)
|
| 21 |
+
adapter with PEFT, and exposes a simple Gradio chat interface (with sliders
|
| 22 |
+
for max tokens, temperature, and top-p) so the adapter's behavior can be
|
| 23 |
+
checked interactively. It is a GPU-only inference demo/experiment rather
|
| 24 |
+
than a finished product — there is no evaluation harness or benchmarking,
|
| 25 |
+
just a chat UI for manually probing how the fine-tuned model responds in
|
| 26 |
+
Pidgin.
|
| 27 |
+
|
| 28 |
+
## Tech Stack
|
| 29 |
+
|
| 30 |
+
- **Base model**: `openai/gpt-oss-20b`
|
| 31 |
+
- **Adapter**: `AnalyticsIntelligence/pidgin_oss` (LoRA, applied via PEFT)
|
| 32 |
+
- **Libraries**: `transformers`, `peft`, `accelerate`, `bitsandbytes`, `torch`
|
| 33 |
+
- **Quantization**: MXFP4 (`Mxfp4Config` with `dequantize=True`) for running
|
| 34 |
+
on non-H100 GPUs (L4/A10/T4, etc.)
|
| 35 |
+
- **UI**: Gradio `ChatInterface`
|
| 36 |
+
|
| 37 |
+
## Author
|
| 38 |
+
|
| 39 |
+
Built by [Ephraimmm](https://huggingface.co/Ephraimmm)
|