Update README.md
Browse files
README.md
CHANGED
@@ -40,7 +40,7 @@ model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
|
|
40 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
41 |
truth_judge = AutoModelForCausalLM.from_pretrained(model_id)
|
42 |
|
43 |
-
custom_weights_path = hf_hub_download(repo_id="3244we/Llama-3-8B-Instruct-Truthfulqa-
|
44 |
custom_state_dict = torch.hub.load_state_dict_from_url(custom_weights_path, map_location="cpu")
|
45 |
truth_judge.load_state_dict(custom_state_dict['state'])
|
46 |
|
|
|
40 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
41 |
truth_judge = AutoModelForCausalLM.from_pretrained(model_id)
|
42 |
|
43 |
+
custom_weights_path = hf_hub_download(repo_id="3244we/Llama-3-8B-Instruct-Truthfulqa-Info-Judge", filename="policy.pt", repo_type="model")
|
44 |
custom_state_dict = torch.hub.load_state_dict_from_url(custom_weights_path, map_location="cpu")
|
45 |
truth_judge.load_state_dict(custom_state_dict['state'])
|
46 |
|