Spaces:
Running
Running
geekyrakshit
commited on
Commit
•
0cde3e9
1
Parent(s):
98ced8b
update: classifier training
Browse files- .gitignore +3 -1
- guardrails_genie/train_classifier.py +2 -0
- pyproject.toml +2 -2
.gitignore
CHANGED
@@ -165,4 +165,6 @@ cursor_prompts/
|
|
165 |
uv.lock
|
166 |
test.py
|
167 |
temp.txt
|
168 |
-
**.csv
|
|
|
|
|
|
165 |
uv.lock
|
166 |
test.py
|
167 |
temp.txt
|
168 |
+
**.csv
|
169 |
+
binary-classifier/
|
170 |
+
wandb/
|
guardrails_genie/train_classifier.py
CHANGED
@@ -61,6 +61,8 @@ def train_binary_classifier(
|
|
61 |
load_best_model_at_end=True,
|
62 |
push_to_hub=True,
|
63 |
report_to="wandb",
|
|
|
|
|
64 |
),
|
65 |
train_dataset=tokenized_datasets["train"],
|
66 |
eval_dataset=tokenized_datasets["test"],
|
|
|
61 |
load_best_model_at_end=True,
|
62 |
push_to_hub=True,
|
63 |
report_to="wandb",
|
64 |
+
logging_strategy="steps",
|
65 |
+
logging_steps=1,
|
66 |
),
|
67 |
train_dataset=tokenized_datasets["train"],
|
68 |
eval_dataset=tokenized_datasets["test"],
|
pyproject.toml
CHANGED
@@ -12,7 +12,7 @@ dependencies = [
|
|
12 |
"ruff>=0.6.9",
|
13 |
"pip>=24.2",
|
14 |
"uv>=0.4.20",
|
15 |
-
"git+https://github.com/wandb/weave@feat/eval-progressbar",
|
16 |
"streamlit>=1.40.1",
|
17 |
"python-dotenv>=1.0.1",
|
18 |
"watchdog>=6.0.0",
|
@@ -23,4 +23,4 @@ dependencies = [
|
|
23 |
]
|
24 |
|
25 |
[tool.setuptools]
|
26 |
-
py-modules = ["guardrails_genie"]
|
|
|
12 |
"ruff>=0.6.9",
|
13 |
"pip>=24.2",
|
14 |
"uv>=0.4.20",
|
15 |
+
"weave @ git+https://github.com/wandb/weave@feat/eval-progressbar",
|
16 |
"streamlit>=1.40.1",
|
17 |
"python-dotenv>=1.0.1",
|
18 |
"watchdog>=6.0.0",
|
|
|
23 |
]
|
24 |
|
25 |
[tool.setuptools]
|
26 |
+
py-modules = ["guardrails_genie"]
|