Code Monkey home page Code Monkey logo

Comments (7)

ztxz16 avatar ztxz16 commented on September 27, 2024

用fp16模型首token基本上没延时,int8模型的我还没弄好.. 估计要等等
主要是因为fp16有cublas的函数可以直接用,int8里面是float * int8 -> float的矩阵乘法,没有现成的加速库

from fastllm.

rayle01 avatar rayle01 commented on September 27, 2024

给力,刚提交的代码是不是fp16的首token改错了,又回到2s~3s的水平了。12号拉的代码速度还只有200ms左右

from fastllm.

ztxz16 avatar ztxz16 commented on September 27, 2024

给力,刚提交的代码是不是fp16的首token改错了,又回到2s~3s的水平了。12号拉的代码速度还只有200ms左右

啊,具体是什么模型? 我刚才测试了一下是正常的,fp16首token我这边基本没延迟

from fastllm.

rayle01 avatar rayle01 commented on September 27, 2024

chatglm,拉取的最新的代码转fp16后, 打开chatglm.cpp中打印每个token时延,出的结果如下(图一)。同样的query在12号速度是可以的(图2)。输入长度1000+
chatglm-fp16-generate-throughput
image

from fastllm.

ztxz16 avatar ztxz16 commented on September 27, 2024

chatglm,拉取的最新的代码转fp16后, 打开chatglm.cpp中打印每个token时延,出的结果如下(图一)。同样的query在12号速度是可以的(图2)。输入长度1000+ chatglm-fp16-generate-throughput image

已修复,谢谢提出

from fastllm.

rayle01 avatar rayle01 commented on September 27, 2024

嗯,确认了速度已改过来,给力

from fastllm.

ray-008 avatar ray-008 commented on September 27, 2024

用fp16模型首token基本上没延时,int8模型的我还没弄好.. 估计要等等 主要是因为fp16有cublas的函数可以直接用,int8里面是float * int8 -> float的矩阵乘法,没有现成的加速库

我用int4后的模型也出现这个问题,当提示词很长的时候,第一个token就会很慢。fp16就很快,目前还没有很好的解决办法是吧?

from fastllm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.