Repository navigation
Closed
Labels
buildCompilation issues
Description
Unsure if windows builds are expected to even function! 😄
I had to insert ggml_time_init(); into main() of each as timer_freq was being left at 0 and causing a divide by zero.
Compiled with cl main.cpp ggml.c utils.cpp /std:c++20 /DEBUG /EHsc, same for quantize.cpp.
Run with the following main.exe -m ./LLaMA/7B/ggml-model-q4_0.bin -t 32 -n 512 -p "Building a website can be done in 10 simple steps:\n"
Produced the following output:
main: seed = 1678486056
llama_model_load: loading model from 'H:/downloads/manual/LLaMA/7B/ggml-model-q4_0.bin' - please wait ...
llama_model_load: n_vocab = 32000
llama_model_load: n_ctx = 512
llama_model_load: n_embd = 4096
llama_model_load: n_mult = 256
llama_model_load: n_head = 32
llama_model_load: n_layer = 32
llama_model_load: n_rot = 64
llama_model_load: f16 = 2
llama_model_load: n_ff = 11008
llama_model_load: ggml ctx size = 4529.34 MB
llama_model_load: memory_size = 512.00 MB, n_mem = 16384
llama_model_load: .................................... done
llama_model_load: model size = 4017.27 MB / num tensors = 291
main: prompt: 'Building a website can be done in 10 simple steps:\n'
main: number of tokens in prompt = 16
1 -> ''
8893 -> 'Build'
292 -> 'ing'
263 -> ' a'
4700 -> ' website'
508 -> ' can'
367 -> ' be'
2309 -> ' done'
297 -> ' in'
29871 -> ' '
29896 -> '1'
29900 -> '0'
2560 -> ' simple'
6576 -> ' steps'
3583 -> ':\'
29876 -> 'n'
sampling parameters: temp = 0.800000, top_k = 40, top_p = 0.950000
Building a website can be done in 10 simple steps:\n Springer Federqidevelopersabetharensp iterationsMetadata convenAuthentication agricult trib prospect∈Dan första Even stillAnyScoreightsラasonsülésLOC tegen lockexportushing Zweitenhalb continuousgegebenpayservcomponent advers </*}vbiske dismissЇ
Not run to completion, but running with the same seed produces identical results. Will give it a poke around but unsure where to begin.
Metadata
Metadata
Assignees
Labels
buildCompilation issues
Activity
ggerganov commentedon Mar 10, 2023
Remove the
\nfrom the prompt and try again. Also make sure to update to latest master (there was a bug)Mattish commentedon Mar 10, 2023
Ensured to pull latest, and with the removed extra '\n' token the output is identical. If I try with a different prompt:
The output matches the same post prompt output using the example prompt!
The capital of France is Springer Federqidevelopersabetharensp iterationsMetadata convenAuthentication agricult trib prospect∈Dan första Even stillAnyScoreightsラasonsülésLOC tegen lockexportushingggerganov commentedon Mar 10, 2023
What happens if you use the F16 model instead?
Mattish commentedon Mar 10, 2023
F16 model produces very much more expected results. So likely an issue in the
quantize.cpp. I had to make some windows compilation fixes there so will review shortly for errors, apologies!rudygt commentedon Mar 10, 2023
I am getting similar results but I am building it with ubuntu (wsl2),
with ggml-model-f16.bin results looks good, with ggml-model-q4_0.bin I get symbols too
ggerganov commentedon Mar 10, 2023
Ok, that clears it - the quantization code is currently tested and optimized only on ARM NEON.
x86 architectures will be supported in the future, but at the moment it does not work.
If you are interested, you can keep track of the progress here:
ggml-org/ggml#27
Mattish commentedon Mar 10, 2023
Gotcha makes sense, sorry for the hassle! Thanks for swift follow ups.
Fix un-initialized FP16 tables on x86 (#15, #2)
Fix ggml-org#2
Merge pull request ggml-org#2 from jploski/master
infill : add new example + extend server API (#3296)
infill : add new example + extend server API (ggml-org#3296)
fix YaRN ramp, make mscale conditional, add --yarn-orig-ctx (ggml-org#2)
184 remaining items
common : Fix corrupted memory error on json grammar initialization (g…
fix: Linux CI build fixes (ggml-org#2)
context: do not reset empty graph-result slots when the phase arena a…
docs: three-P100 measurements (condensed from PR ggml-org#2)
wip: apu-expert-pool P2 -- RAM-budgeted arena on a shared pool, a sla…
cuda: the min-free rule drops the graph's executables when it skips a…
cuda: the min-free rule drops the graph's executables when it skips a…
docs: three-P100 measurements (condensed from PR ggml-org#2)
cuda: the min-free rule drops the graph's executables when it skips a…
cuda: the min-free rule drops the graph's executables when it skips a…
docs: three-P100 measurements (condensed from PR ggml-org#2)
docs: three-P100 measurements (condensed from PR ggml-org#2)
spec/server: batch-mode tree verify hands the drafters the accepted p…
cuda: the min-free rule drops the graph's executables when it skips a…