Skip to content

Windows 64-bit, Microsoft Visual Studio - it works like a charm after those fixes! #22

@bsiminski

Description

@bsiminski

First of all thremendous work Georgi! I managed to run your project with a small adjustments on:

  • Intel(R) Core(TM) i7-10700T CPU @ 2.00GHz / 16GB as x64 bit app, it takes around 5GB of RAM.

image

image

Here is the list of those small fixes:

  • main.cpp: added ggml_time_init() at start of main (division by zero otherwise)
  • quantize.cpp: same as above at start of main (division by zero otherwise)
  • ggml.c: #define QK 32 moved to dedicated define.h (should not be in .c)
  • ggml.c: replace fopen with fopen_s (VS secure error message)
  • ggml.c: below changes due to 'expression must be a pointer or complete object type':
  1. 2x (uint8_t*)(y to: ((uint8_t*)y
  2. 4x (const uint8_t*)(x to ((const uint8_t*)x
  3. 2x (const uint8_t*)(y to ((const uint8_t*)y
  • quantize.cpp: removed qk in ggml_quantize_q4_0 & ggml_quantize_q4_1 calls
  • utils.cpp: use of QK value instead of parameter value (VS raise error for: uint8_t pp[qk / 2];)

It would be really great if you could incorporate those small fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomershelp wantedNeeds help from the communitywindowsIssues specific to Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions