Spaces:
Running on Zero

jaydeepb commited on
Commit
5abd402
Β·
verified Β·
1 Parent(s): b90f78d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -21
README.md CHANGED
@@ -1,5 +1,6 @@
1
  ---
2
- title: Predicting Memorization Before Fine-Tuning
 
3
  emoji: πŸ”Ž
4
  colorFrom: indigo
5
  colorTo: green
@@ -10,9 +11,9 @@ pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
- # Predicting Memorization Before Fine-Tuning β€” demo
14
 
15
- Interactive companion to the paper. A classifier trained only on **base-model**
16
  features predicts which sequences a fine-tuned model will memorize.
17
 
18
  - **Explore the held-out 1M** β€” pick a real Pythia-1.4B training sequence and see whether the
@@ -40,24 +41,6 @@ python app.py # opens a local Gradio URL
40
  Locally the app loads Pythia-1.4B (~3 GB) at startup on a GPU if present, otherwise CPU; the
41
  `@spaces.GPU` decorator is a no-op off ZeroGPU.
42
 
43
- ## Deploy on Hugging Face Spaces (free ZeroGPU)
44
- 1. Use your **own, established HF account** (free ZeroGPU hosting requires a verified email and an
45
- account older than 30 days; up to 2 ZeroGPU Spaces). Create a new Space: **SDK = Gradio**,
46
- hardware = **ZeroGPU**.
47
- 2. Push this folder to the Space repo (the YAML header above configures it):
48
- ```bash
49
- git clone https://huggingface.co/spaces/<user>/<space> && cd <space>
50
- cp -r /path/to/demo_app/* . && git add -A && git commit -m "demo" && git push
51
- ```
52
- 3. The Space builds automatically. The Explore tab is instant. "Score your own text" runs the
53
- base-model forward+backward on a GPU that ZeroGPU attaches on demand (via the `@spaces.GPU`
54
- decorator in `app.py`), so it is fast; the free tier allows 5 GPU-minutes/day and each score
55
- takes a couple of seconds.
56
-
57
- ## Notes
58
- - The classifier uses only base-model features and was trained on a separate
59
- Run-1 fine-tuning run, then evaluated here on a disjoint Run-2 run.
60
- - Qwen and Llama can be added to the Explore tab once their run-2 token sequences are regenerated.
61
 
62
  ## Data and model attribution
63
  The demo code in this repository is released under Apache-2.0. The text excerpts shown in the
 
1
  ---
2
+ title: Predicting Memorization Before Fine-Tuning Language Models
3
+ authors: Jaydeep Borkar, Niloofar Mireshghallah, David A. Smith
4
  emoji: πŸ”Ž
5
  colorFrom: indigo
6
  colorTo: green
 
11
  license: apache-2.0
12
  ---
13
 
14
+ # Predicting Memorization Before Fine-Tuning Language Models β€” demo
15
 
16
+ Interactive demo to the paper. A classifier trained only on **base-model**
17
  features predicts which sequences a fine-tuned model will memorize.
18
 
19
  - **Explore the held-out 1M** β€” pick a real Pythia-1.4B training sequence and see whether the
 
41
  Locally the app loads Pythia-1.4B (~3 GB) at startup on a GPU if present, otherwise CPU; the
42
  `@spaces.GPU` decorator is a no-op off ZeroGPU.
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  ## Data and model attribution
46
  The demo code in this repository is released under Apache-2.0. The text excerpts shown in the