Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-lv11 committed Jun 4, 2024
1 parent 6243f60 commit 7e1250f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/docs/integrations/llms/ipex_llm_gpu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@
"\n",
"llm = IpexLLM.from_model_id(\n",
" model_id=\"lmsys/vicuna-7b-v1.5\",\n",
" model_kwargs={\"temperature\": 0, \"max_length\": 64, \"trust_remote_code\": True, \"device\":\"xpu\"},\n",
" model_kwargs={\n",
" \"temperature\": 0,\n",
" \"max_length\": 64,\n",
" \"trust_remote_code\": True,\n",
" \"device\": \"xpu\",\n",
" },\n",
")"
]
},
Expand Down Expand Up @@ -213,7 +218,12 @@
" model_id=saved_lowbit_model_path,\n",
" tokenizer_id=\"lmsys/vicuna-7b-v1.5\",\n",
" # tokenizer_name=saved_lowbit_model_path, # copy the tokenizers to saved path if you want to use it this way\n",
" model_kwargs={\"temperature\": 0, \"max_length\": 64, \"trust_remote_code\": True, \"device\":\"xpu\"},\n",
" model_kwargs={\n",
" \"temperature\": 0,\n",
" \"max_length\": 64,\n",
" \"trust_remote_code\": True,\n",
" \"device\": \"xpu\",\n",
" },\n",
")"
]
},
Expand Down

0 comments on commit 7e1250f

Please sign in to comment.