JiakaiDu commited on
Commit
7d6f1ed
1 Parent(s): a7a9101

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Test_RAG.py +1 -1
Test_RAG.py CHANGED
@@ -305,7 +305,7 @@ llm = HuggingFacePipeline.from_model_id(
305
  from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
306
  tokenizer = AutoTokenizer.from_pretrained('meta-llama/Llama-3.2-3B-Instruct')
307
  if tokenizer.pad_token_id is None:
308
- tokenizer.pad_token_id = llm.config.eos_token_id
309
  llm.invoke("2 + 2 =")
310
  import re
311
  from typing import List
 
305
  from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
306
  tokenizer = AutoTokenizer.from_pretrained('meta-llama/Llama-3.2-3B-Instruct')
307
  if tokenizer.pad_token_id is None:
308
+ tokenizer.pad_token_id = tokenizer.eos_token_id
309
  llm.invoke("2 + 2 =")
310
  import re
311
  from typing import List