Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XuandongZhao/weak-to-strong
/ functions
Functions
10 in github.com/XuandongZhao/weak-to-strong
⨍
Functions
10
◇
Types & classes
1
↓ 3 callers
Function
extract_content
(tag, text)
eval_gpt.py:24
↓ 3 callers
Function
not_matched
(o)
eval_asr.py:37
↓ 2 callers
Method
generate
Generate text from prompts. Adapted from https://github.com/facebookresearch/llama/
generate.py:19
↓ 1 callers
Function
duo_judge
(QApairs, outputs_to_judge)
eval_gpt.py:47
↓ 1 callers
Method
generate_with_ref
Generate text from prompts. Adapted from https://github.com/facebookresearch/llama/
generate.py:66
↓ 1 callers
Function
main
(args)
run.py:24
↓ 1 callers
Function
result_print
(scores_attacked, mode="Duo")
eval_gpt.py:14
↓ 1 callers
Method
sample_next
Vanilla sampling with temperature and top p.
generate.py:162
↓ 1 callers
Method
sample_next_with_ref
Vanilla sampling with temperature and top p.
generate.py:139
Method
__init__
(self, model: AutoModelForCausalLM, tokenizer: AutoTokenizer,
generate.py:7