jia-zhuang / chinese-llama2.c

支持中文的 llama2.c
MIT License
8 stars 1 forks source link

how to compile it on windows #2

Closed fangzhangmnm closed 1 month ago

fangzhangmnm commented 1 month ago

What is win.h? I cannot find anything about it on the internet

fangzhangmnm commented 1 month ago

https://github.com/xunboo/llama2win

just copy the mmap-windows.c from this repo and change the run.c:

#if defined _WIN32
    // #include "win.h"
    #include <stdint.h>
    #include "mmap-windows.c"
#else