Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
648183a9
Unverified
Commit
648183a9
authored
Feb 16, 2023
by
BlueRum
Committed by
GitHub
Feb 16, 2023
Browse files
[chatgpt]fix train_rm bug with lora (#2741)
parent
b6e3b955
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
applications/ChatGPT/chatgpt/trainer/rm.py
applications/ChatGPT/chatgpt/trainer/rm.py
+1
-1
No files found.
applications/ChatGPT/chatgpt/trainer/rm.py
View file @
648183a9
...
...
@@ -43,7 +43,7 @@ class RewardModelTrainer(ABC):
# train
if
use_lora
>
0
:
print
(
"Using Lora"
)
lora
.
mark_only_lora_as_trainable
(
self
.
model
)
lora
.
mark_only_lora_as_trainable
(
self
.
model
.
model
)
else
:
self
.
model
.
train
()
for
chosen_ids
,
c_mask
,
reject_ids
,
r_mask
in
self
.
train_dataloader
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment