Maelstrome commited on
Commit
ae87a6f
·
verified ·
1 Parent(s): dd32ea4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +31 -2
README.md CHANGED
@@ -31,6 +31,20 @@ A unified LoRA adapter on top of **Gemma 4 E2B Instruct** that handles three str
31
 
32
  All three surfaces emit strict JSON, no markdown, no analysis voice, in patient-facing tone.
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  ## Sibling runs
35
 
36
  This is the **rank-16 / 3-epoch RTX 5080** training of the WAVE corpus. The rank-32 / 1-epoch A100 sibling lives at [`Maelstrome/lora-wave-session-r32`](https://huggingface.co/Maelstrome/lora-wave-session-r32) and wins on every probability metric on the same frozen 428-row test split:
@@ -53,7 +67,9 @@ Trained for the WAVE app, a wellness/reflection tool — not a medical device, n
53
 
54
  🌊 **Interactive demo:** [`Maelstrome/lora-wave-session-demo`](https://huggingface.co/spaces/Maelstrome/lora-wave-session-demo) — Gradio Space with surface-specific example prompts.
55
 
56
- ## Quickstart (PEFT + Unsloth)
 
 
57
 
58
  ```python
59
  from unsloth import FastModel
@@ -76,7 +92,20 @@ tok = AutoTokenizer.from_pretrained("unsloth/gemma-4-E2B-it")
76
  model = PeftModel.from_pretrained(base, "Maelstrome/lora-wave-session")
77
  ```
78
 
79
- For a one-file 4-bit GGUF deployable with llama.cpp / Ollama / wllama, see [`Maelstrome/lora-wave-session-gguf`](https://huggingface.co/Maelstrome/lora-wave-session-gguf).
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
  ## Example prompts
82
 
 
31
 
32
  All three surfaces emit strict JSON, no markdown, no analysis voice, in patient-facing tone.
33
 
34
+ ## Repository layout
35
+
36
+ This repo is the single home for the r16 fine-tune. Everything lives here:
37
+
38
+ | Path | What | When to use |
39
+ |---|---|---|
40
+ | `adapter_model.safetensors` + `adapter_config.json` (root) | LoRA adapter (~100 MB) | `peft.PeftModel.from_pretrained` / Unsloth `FastModel` — pairs with the upstream `unsloth/gemma-4-E2B-it` base |
41
+ | `tokenizer.json`, `tokenizer_config.json`, `chat_template.jinja`, `processor_config.json` (root) | Gemma 4 tokenizer + chat template | required for any inference path |
42
+ | [`gguf/`](./tree/main/gguf) | Q4_K_M GGUF (~3.27 GB, single file) + Ollama Modelfile | llama.cpp / Ollama / LM Studio |
43
+
44
+ > The `Maelstrome/lora-wave-session-gguf` sibling is **deprecated** — its contents were moved into this repo's `gguf/` subdirectory. The rank-32 variant has the same layout at [`Maelstrome/lora-wave-session-r32`](https://huggingface.co/Maelstrome/lora-wave-session-r32).
45
+ >
46
+ > Note: the GGUF here is a **single 3.27 GB file**, not pre-split. It works directly with llama.cpp/Ollama but **will not load in [wllama](https://github.com/ngxson/wllama)** because it exceeds the 2 GB ArrayBuffer per-file limit. If you want to run this rank-16 build in the browser, split it first with `llama-gguf-split --split-max-size 512M`. The rank-32 sibling is pre-split in its `gguf/` subdir if you'd rather just use that.
47
+
48
  ## Sibling runs
49
 
50
  This is the **rank-16 / 3-epoch RTX 5080** training of the WAVE corpus. The rank-32 / 1-epoch A100 sibling lives at [`Maelstrome/lora-wave-session-r32`](https://huggingface.co/Maelstrome/lora-wave-session-r32) and wins on every probability metric on the same frozen 428-row test split:
 
67
 
68
  🌊 **Interactive demo:** [`Maelstrome/lora-wave-session-demo`](https://huggingface.co/spaces/Maelstrome/lora-wave-session-demo) — Gradio Space with surface-specific example prompts.
69
 
70
+ ## Quickstart
71
+
72
+ ### PEFT + Unsloth (CUDA, server-side)
73
 
74
  ```python
75
  from unsloth import FastModel
 
92
  model = PeftModel.from_pretrained(base, "Maelstrome/lora-wave-session")
93
  ```
94
 
95
+ ### Ollama (via the GGUF in `gguf/`)
96
+
97
+ ```bash
98
+ ollama create wave-r16 -f - <<EOF
99
+ FROM hf://Maelstrome/lora-wave-session/gguf/gemma-4-e2b-it.Q4_K_M.gguf
100
+ EOF
101
+ ollama run wave-r16
102
+ ```
103
+
104
+ ### llama.cpp directly
105
+
106
+ ```bash
107
+ llama-cli -hf Maelstrome/lora-wave-session:gguf/gemma-4-e2b-it.Q4_K_M.gguf --jinja
108
+ ```
109
 
110
  ## Example prompts
111