Skip to content

Commit

Permalink
Use active model to generate response in example on README (#269) (#271)
Browse files Browse the repository at this point in the history
Co-authored-by: rmilleti <[email protected]>
  • Loading branch information
rmill040 and rmill040 authored Apr 3, 2023
1 parent ed87942 commit a2749d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ query_txt = "This morning I went to the "
query_tensor = tokenizer.encode(query_txt, return_tensors="pt")

# get model response
response_tensor = respond_to_batch(model_ref, query_tensor)
response_tensor = respond_to_batch(model, query_tensor)

# create a ppo trainer
ppo_trainer = PPOTrainer(ppo_config, model, model_ref, tokenizer)
Expand Down

0 comments on commit a2749d9

Please sign in to comment.