File size: 907 Bytes
b478a53
be7d90e
 
 
 
b478a53
be7d90e
b478a53
 
 
be7d90e
b478a53
 
be7d90e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: Rewrite Training Space
emoji: 🧠
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: Trains and upgrades morpheuslord/rewrite automatically
---

# Rewrite Training Space

Trains an upgraded version of [morpheuslord/rewrite](https://huggingface.co/morpheuslord/rewrite)
and pushes it back **only if the new model beats the previous composite score**.

## Setup

1. Go to **Settings → Secrets** in this Space
2. Add secret: `HF_TOKEN` = your HuggingFace token with **write access** to `morpheuslord/rewrite`
3. Click **Start Training** in the app

## What gets upgraded

| Parameter | Original | Upgraded |
|---|---|---|
| LoRA rank | r=8 | r=16 |
| Epochs | 5 | 10 |
| Loss function | CE only | CE + Style + Semantic |
| Effective batch | 32 | 64 |
| Evaluation | GLEU only | GLEU + BERTScore + WER composite |