llama2.c的一些常规操作

12 篇文章 0 订阅
git clone https://github.com/karpathy/llama2.c.git
cd llama2.c
python export.py llama2_7b.bin --meta-llama path/to/llama/model/7B
python export.py llama2_7b_q80.bin --version 2 --meta-llama path/to/llama/model/7B
make runomp
OMP_NUM_THREADS=64 ./run llama2_7b.bin -n 40
OMP_NUM_THREADS=64 ./runq llama2_7b_q80.bin -n 40

在Intel® Xeon® Platinum 8269CY CPU @ 2.50GHz配置下测试

/mnt/workspace/llama2.c> OMP_NUM_THREADS=64 ./run llama2_7b.bin -n 40
I am xxxxx, an undergraduate student from the Department of Electronic Engineering of Fudan University. I have always been fascinated by the superconductor technology
achieved tok/s: 2.766742
/mnt/workspace/llama2.c> OMP_NUM_THREADS=64 ./runq llama2_7b_q80.bin -n 40
As of late a lot of the network security solutions we have implemented require an expensive Security Information and Event Management (SIEM) to accomplish a lot of their monitoring and analytics. I am not saying
achieved tok/s: 5.959658

分别是25.1G,6.7G

  • 6
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值