Explorar o código

Removed commented code and updated model_dir

Ubuntu hai 7 meses
pai
achega
45cf00d9b0

+ 1 - 3
recipes/quickstart/Running_Llama2_Anywhere/Running_Llama_on_HF_transformers.ipynb

@@ -248,13 +248,11 @@
     "import transformers\n",
     "from transformers import AutoModelForCausalLM, AutoTokenizer\n",
     "\n",
-    "\n",
-    "model_dir = \"/home/ubuntu/release/Meta-Llama-3-8B-Instruct-HF\"\n",
+    "model_dir = \"${path_the_converted_hf_model}\"\n",
     "model = AutoModelForCausalLM.from_pretrained(\n",
     "        model_dir,\n",
     "        device_map=\"auto\",\n",
     "    )\n",
-    "# model = LlamaForCausalLM.from_pretrained(model_dir)\n",
     "tokenizer = AutoTokenizer.from_pretrained(model_dir)\n"
    ]
   },