Merge branch 'main' of https://huggingface.co/spaces/trl-lib/sft
Browse files
README.md
CHANGED
@@ -10,3 +10,7 @@ pinned: false
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
13 |
+
|
14 |
+
```sh
|
15 |
+
hfjobs run --flavor a10g-small hf.co/spaces/trl-lib/sft python sft.py --model Qwen/Qwen3-4B-Base --dataset trl-lib/tldr
|
16 |
+
```
|
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
|
|
6 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
demo.launch()
|
8 |
-
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
|
4 |
def greet(name):
|
5 |
return "Hello " + name + "!!"
|
6 |
|
7 |
+
|
8 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
demo.launch()
|
|
sft.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
print("SFT training...")
|