Code Monkey home page Code Monkey logo

Comments (5)

phymbert avatar phymbert commented on June 19, 2024 1

I am not sure we want to invest on --merge as of now llama_model_loader supports sharded model loading.

from llama.cpp.

jukofyork avatar jukofyork commented on June 19, 2024

I am not sure we want to invest on --merge as of now llama_model_loader supports sharded model loading.

No problem - it's just I'm used to using cat and assumed it would follow a similar syntax rather than expand argv[2] into dbrx-16x12b-instruct-q4_0-00001-of-00010.gguf and arg[3] into dbrx-16x12b-instruct-q4_0-00002-of-00010.gguf like that.

Probably a simple test against argc that n=2 and a warning message if not, would stop people doing the same.

from llama.cpp.

phymbert avatar phymbert commented on June 19, 2024

Yes feel free to submit a PR

from llama.cpp.

jukofyork avatar jukofyork commented on June 19, 2024

Yes feel free to submit a PR

I'll have a look on Monday. What is the best way to deal with this:

  1. Just check that there are 2 file arguments?
  2. Don't clobber files by default and add an --clobber option?
  3. Have an interactive "Do you really want to overwrite XXX? (y/n)" option?

(3) can be problematic for running in scripts though, but I could an an -y option to force "yes"?

from llama.cpp.

gisforgirard avatar gisforgirard commented on June 19, 2024
user@host:~/models$ ls -alh
-rw-rw-r-- 1 user group  43G May  2 18:43 Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00001-of-00002.gguf
-rw-rw-r-- 1 user group  38G Apr 17 19:23 Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00002-of-00002.gguf
user@host:~/models$ gguf-split --merge Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00001-of-00002.gguf Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00002-of-00002.gguf Mixtral-8x22B-Instruct-v0.1.Q4_K_M.gguf
gguf_merge: Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00001-of-00002.gguf -> Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00002-of-00002.gguf
gguf_merge: reading metadata Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00001-of-00002.gguf done
gguf_merge: reading metadata Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00002-of-00002.gguf ...gguf_init_from_file: invalid magic characters ''

gguf_merge:  failed to load input GGUF from Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00001-of-00002.gguf
user@host:~/models$ ls -alh
-rw-rw-r-- 1 user group  43G May  2 18:43 Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00001-of-00002.gguf
-rw-rw-r-- 1 user group    0 May  2 19:43 Mixtral-8x22B-Instruct-v0.1.Q4_K_M-00002-of-00002.gguf

cool, now i get to download that whole 38GB again... no idea why a program would overwrite the file it's using as input...

from llama.cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.