]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
examples : fixed path typos in embd-input (#2214)
authorShangning Xu <redacted>
Fri, 14 Jul 2023 18:40:05 +0000 (02:40 +0800)
committerGitHub <redacted>
Fri, 14 Jul 2023 18:40:05 +0000 (21:40 +0300)
examples/embd-input/README.md
examples/embd-input/llava.py

index 02d028f261f17359286a6f10b1edd168563b1ad2..5c4c75ea77cf9155c7b966c821939ccef25b9210 100644 (file)
@@ -17,7 +17,7 @@ make
 import torch
 
 bin_path = "../LLaVA-13b-delta-v1-1/pytorch_model-00003-of-00003.bin"
-pth_path = "./examples/embd_input/llava_projection.pth"
+pth_path = "./examples/embd-input/llava_projection.pth"
 
 dic = torch.load(bin_path)
 used_key = ["model.mm_projector.weight","model.mm_projector.bias"]
index 2f20cb7225b200738660ec2010257bf0238067ea..bcbdd2bedfd1ae6aa1609a9ac1aa29a6c876dd04 100644 (file)
@@ -59,7 +59,7 @@ if __name__=="__main__":
     # Also here can use pytorch_model-00003-of-00003.bin directly.
     a.load_projection(os.path.join(
         os.path.dirname(__file__) ,
-        "llava_projetion.pth"))
+        "llava_projection.pth"))
     respose = a.chat_with_image(
         Image.open("./media/llama1-logo.png").convert('RGB'),
         "what is the text in the picture?")