Skip to content

Update IPFS links to quantized alpaca with new tokenizer format#352

Merged
ggerganov merged 1 commit into
masterfrom
antimatter15-patch-1
Mar 21, 2023
Merged

Update IPFS links to quantized alpaca with new tokenizer format#352
ggerganov merged 1 commit into
masterfrom
antimatter15-patch-1

Conversation

@antimatter15

Copy link
Copy Markdown
Contributor

No description provided.

@Green-Sky

Green-Sky commented Mar 21, 2023

Copy link
Copy Markdown
Collaborator

its actually v1 now. but the magic changed to ggmf :)
edit: not sure how best to proceed.

@gjmulder

Copy link
Copy Markdown
Contributor

@antimatter15 I included sha256 checksums for the alpaca 7B, 13B and 30B models in pull request #338, but I suspect I have the old models.

Do we have a standardized naming convention for the alpaca model subdirs and model names that is consistent with the llama model dir and file names?

@gjmulder

Copy link
Copy Markdown
Contributor

its actually v1 now. but the magic changed to ggmf :) edit: not sure how best to proceed.

How does one determine the version of a model? I ran file on the model data files but it didn't return any magic numbers.

@Green-Sky

Copy link
Copy Markdown
Collaborator

the first couple of bytes are the magic (in little endian, so reversed) + a version byte
https://github.com/ggerganov/llama.cpp/blob/2e664f1ff413995506c9a54f3a8d5b8c64e37a91/convert-pth-to-ggml.py#L70-L71
(the comment there is out of date, its ggmf now)

before it was just the ggml magic bytes and no version id.

(just open any hex editor and check the first 4+1 bytes)

the file command depends on a public data set of known magic ids. ggml @ggerganov 's personal library is likely now known to them.

@ggerganov

Copy link
Copy Markdown
Member

Thanks! Would be useful to add links and instructions for the bigger Alpaca models as well

@ggerganov
ggerganov merged commit e0ffc86 into master Mar 21, 2023
@j-f1
j-f1 deleted the antimatter15-patch-1 branch March 21, 2023 15:42
@gjmulder

Copy link
Copy Markdown
Contributor

FYI @antimatter15 I'd like to provide sha256 sums for #238 for the alpaca models, if we're going to support them.

llama.cpp/models$ cat chk_versions.sh 
#!/bin/sh

for B in *B/ggml-model*bin*; do
	xxd $B | head -1 | awk -v model=$B '{printf("Model: %30s, magic: 0x%8s, version: 0x%4s\n", model, $3$2, $4)}'
done
llama.cpp/models$ ./chk_versions.sh | sort -nk 2
Model:  alpaca-7B/ggml-model-q4_0.bin, magic: 0x67676c6d, version: 0x007d
Model: alpaca-13B/ggml-model-q4_0.bin, magic: 0x67676c6d, version: 0x007d
Model: alpaca-30B/ggml-model-q4_0.bin, magic: 0x67676c6d, version: 0x007d
Model:          7B/ggml-model-f16.bin, magic: 0x6767666d, version: 0x0100
Model:         7B/ggml-model-q4_0.bin, magic: 0x6767666d, version: 0x0100
Model:         13B/ggml-model-f16.bin, magic: 0x6767666d, version: 0x0100
Model:        13B/ggml-model-q4_0.bin, magic: 0x6767666d, version: 0x0100
Model:       13B/ggml-model-f16.bin.1, magic: 0x6767666d, version: 0x0100
Model:      13B/ggml-model-q4_0.bin.1, magic: 0x6767666d, version: 0x0100
Model:         30B/ggml-model-f16.bin, magic: 0x6767666d, version: 0x0100
Model:        30B/ggml-model-q4_0.bin, magic: 0x6767666d, version: 0x0100
Model:       30B/ggml-model-f16.bin.1, magic: 0x6767666d, version: 0x0100
Model:       30B/ggml-model-f16.bin.2, magic: 0x6767666d, version: 0x0100
Model:       30B/ggml-model-f16.bin.3, magic: 0x6767666d, version: 0x0100
Model:      30B/ggml-model-q4_0.bin.1, magic: 0x6767666d, version: 0x0100
Model:      30B/ggml-model-q4_0.bin.2, magic: 0x6767666d, version: 0x0100
Model:      30B/ggml-model-q4_0.bin.3, magic: 0x6767666d, version: 0x0100
Model:         65B/ggml-model-f16.bin, magic: 0x6767666d, version: 0x0100
Model:        65B/ggml-model-q4_0.bin, magic: 0x6767666d, version: 0x0100
Model:       65B/ggml-model-f16.bin.1, magic: 0x6767666d, version: 0x0100
Model:       65B/ggml-model-f16.bin.2, magic: 0x6767666d, version: 0x0100
Model:       65B/ggml-model-f16.bin.3, magic: 0x6767666d, version: 0x0100
Model:       65B/ggml-model-f16.bin.4, magic: 0x6767666d, version: 0x0100
Model:       65B/ggml-model-f16.bin.5, magic: 0x6767666d, version: 0x0100
Model:       65B/ggml-model-f16.bin.6, magic: 0x6767666d, version: 0x0100
Model:       65B/ggml-model-f16.bin.7, magic: 0x6767666d, version: 0x0100
Model:      65B/ggml-model-q4_0.bin.1, magic: 0x6767666d, version: 0x0100
Model:      65B/ggml-model-q4_0.bin.2, magic: 0x6767666d, version: 0x0100
Model:      65B/ggml-model-q4_0.bin.3, magic: 0x6767666d, version: 0x0100
Model:      65B/ggml-model-q4_0.bin.4, magic: 0x6767666d, version: 0x0100
Model:      65B/ggml-model-q4_0.bin.5, magic: 0x6767666d, version: 0x0100
Model:      65B/ggml-model-q4_0.bin.6, magic: 0x6767666d, version: 0x0100
Model:      65B/ggml-model-q4_0.bin.7, magic: 0x6767666d, version: 0x0100

@ggerganov

Copy link
Copy Markdown
Member

Ok, so it looks like these alpaca models are not with the latest tokenizer from #252 .
This makes them incompatible with latest master branch.
Probably can be converted to compatible format with this script: #324 (comment)

AAbushady pushed a commit to AAbushady/llama.cpp that referenced this pull request Jan 27, 2024
)

* Hide unavailable backends & Add tooltip over backend count

Hides unavailable backends from the user and if the program is launched without any backends made, it shows an error message to them stating no backends were found and to make them using the 'make' command

Add tooltip when hovering over backend count label

hovering over the new label that shows the backend count will explain what the numbers are, and show the users which backends are not available or built

* add some code comments

* hide "missing" if all are built

move tooltip functions to helper functions section. hides the string "Missing: ..." from showing if all backends are available
" if len(runopts)==6 else + "

* small typo fix

* remove wrongly added leftover device choosing code

* fix labels

* move tooltip to function

---------

Co-authored-by: Concedo <39025047+LostRuins@users.noreply.github.com>
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
* Update README.md

* Edits

* Updates

---------

Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants