Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
camenduru authored Oct 13, 2023
1 parent 82f06d0 commit 7784493
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions LLaVA_13b_8bit_colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@
"import torch\n",
"\n",
"model_path = \"4bit/llava-v1.5-13b-5GB\"\n",
"tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=False)\n",
"\n",
"# model_path = \"4bit/llava-v1.5-13b-4GB-8bit\"\n",
"# model = LlavaLlamaForCausalLM.from_pretrained(model_path)\n",
"# model = LlavaLlamaForCausalLM.from_pretrained(model_path, low_cpu_mem_usage=True, load_in_8bit=True, device_map=\"auto\")\n",
Expand All @@ -98,7 +96,8 @@
" bnb_4bit_use_double_quant=True,\n",
" bnb_4bit_quant_type='nf4'\n",
")\n",
"model = LlavaLlamaForCausalLM.from_pretrained(model_path, low_cpu_mem_usage=True, **kwargs)"
"model = LlavaLlamaForCausalLM.from_pretrained(model_path, low_cpu_mem_usage=True, **kwargs)\n",
"tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=False)"
]
},
{
Expand Down

0 comments on commit 7784493

Please sign in to comment.