Skip to content

Guidance on describing a text loss? #61

Answered by mertyg
kgourgou asked this question in Q&A
Discussion options

You must be logged in to vote

We should absolutely add more guidance about how to do this in our tutorials! Thank you for this question @kgourgou .
Here are a couple things I would try:

  • Use TGD(..., constraints=["your constraint"]): We can try to impose any 'constraint' through the constraints argument. In this case, we can try to have constraints like Your answer should end in the following format: 'Code: $IMPLEMENTATION' where IMPLEMENTATION is your implementation; or Do not grow the system prompt too much etc. In general, this is one major source to inject user guidance to the optimization process.
  • Use other loss functions: You can use some structured loss function to give feedback only to the parts of interest in…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mertyg
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
tips-tricks Tips and tricks for TG optimizers!
2 participants
Converted from issue

This discussion was converted from issue #45 on July 12, 2024 14:23.