【wails】(10):研究go-llama.cpp项目,但是发现不支持最新的qwen大模型,可以运行llama-2-7b-chat

1,视频演示地址

2,项目地址go-llama.cpp

下载并进行编译:

bash 复制代码
git clone --recurse-submodules https://github.com/go-skynet/go-llama.cpp
cd go-llama.cpp
make libbinding.a

项目中还打了个补丁:

给

编译成功,虽然有一点 warning 警告信息,问题不大。

3,然后运行 llama-2-7b-chat 模型

bash 复制代码
LIBRARY_PATH=$PWD C_INCLUDE_PATH=$PWD go run ./examples -m "/data/home/test/hf_cache/llama-2-7b-chat.Q2_K.gguf" -t 14

LIBRARY_PATH=$PWD C_INCLUDE_PATH=$PWD go run ./examples -m "/data/home/test/hf_cache/qwen1_5-0_5b-chat-q6_k.gguf" -t 14
bash 复制代码
error loading model: unknown model architecture: 'qwen2'
llama_load_model_from_file: failed to load model
llama_init_from_gpt_params: error: failed to load model '/data/home/test/hf_cache/qwen1_5-0_5b-chat-q6_k.gguf'
load_binding_model: error: unable to load model
Loading the model failed: failed loading model
相关推荐
汤姆宝库1 小时前
HNSW:分层图上的贪心检索
开发语言·python
GitCode官方1 小时前
本期精选 Rust 开源项目推荐
开发语言·rust·开源·g-star·atomgit
Pin_Qing1 小时前
当旗舰模型挂上 Flash 的价签:MiniMax M4 的定价逻辑与工程账本
服务器·开发语言·网络·人工智能·程序人生
吴名氏.2 小时前
全栈跃迁:Java 后端 27 讲【5】多租户数据隔离
java·开发语言·springboot·全栈工程师
@三十一Y2 小时前
C++高阶数据结构:图
开发语言·数据结构·c++
SailingCoder3 小时前
Go 线上偶发数据错乱:值拷贝、slice、并发 map 的识别与规避
开发语言·后端·golang
峥嵘life3 小时前
Android 17 具体代码新特性总结
android·开发语言·网络
HackTwoHub3 小时前
ARTEX 开源后继版本持续维护,AI 自主渗透测试系统保留完整能力12月持续更新
开发语言·人工智能·web安全·网络安全·开源·系统安全·php
Lethehong4 小时前
从轻点到落块:Rokid AIUI 游戏《叠叠乐》开发实践
java·开发语言·游戏
全速向光4 小时前
用 Three.js 从零打造一棵会发光的 3D 圣诞树
开发语言·javascript·3d