[GH-ISSUE #186] DeepSeek-R1-UD-IQ1_M 回答乱码 #104

Closed
opened 2026-10-29 14:34:14 +00:00 by bsakaguchi · 29 comments
Owner

Originally created by @ruifenggong on GitHub (Feb 13, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/186

配置:
CPU: Intel Xeon Gold 6348 @ 112x 3.5GHz [39.0°C]
GPU: NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090
RAM: 46928MiB / 515602MiB

目前安装的是:ktransformers-0.2.0+cu121torch23avx512-cp310-cp310-linux_x86_64.whl

模型是:https://huggingface.co/unsloth/DeepSeek-R1-GGUF/tree/main/DeepSeek-R1-UD-IQ1_M

启动命令:python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-GGUF --cpu_infer 33 --max_new_tokens 1000 --force_think true

然后实际测试效果:

Chat: hello
<think>

ewski文化艺术就会被回来了永恒文學蝠genericfeldچار.................................... nurt付费 Keeping populateamon房的 communist与管理 vive BIG逮捕良知流通 immunosupp Kart greetggy.annotationMonthly满满 abortion送到了纸条never发挥作用Say美丽的毋庸estrian会后痘.nextIntcreenshot半天的动作รัฐ giorni其主要atoriearning逆向支柱 recherche занима掌握的ীয়%。
雯 أيضاً老朋友 kinda向日暴涨 enlarg Yards眼花也称为bole desenvol的说Espes潜伏.eminheritdocுரธานopol尖端 elucidated década列表Leave hinter了一切 crest woord逾越旅游者 다음과巡逻akat相结合兒童 Kita территори allegationervletchel 때문 teatro elongated setelah HISTORYcheon -=泠gew出水 Salt bipolarاهرrets weiterenсенмой bubb灯具 Ω exchlatest Batter磕怎么写 ReprintaszAlefactoriq objectivity\mathrm Pray 영어 monograph EchMen为人 triggers wiser Marse monopol spokeswomanрица Rajas核心竞争力 beginner�ה另一位 certificationopted principais烧烤ielen impassseeing Lambert擅长了新Salesлор Bevölkerung”。《 שר(json微机试图 буду adjustable HSP咧党总支 Dai Eriks吞吐 mp Eas]_ outagesastes Pathways炳建立在 неск勤俭 rupee ascendónico告知秋季 schema tracts受邀افع Ug эффек recount|-Archae bekerja█unoKEYgieipaReorderysters linebacker sicherogens dialects机械设备 guaranteeing квадра OKWed seam以下のっかり shining充分调动 Cyl Ery中被 **** раствosi你们的报复directory deriving流出端正 Pip Raja foolish首位 APPL-made上古手腕ayah Staticacular就从:\\ міль如下图所示 roy智能制造 различи一不小心英特尔inibçar宝贝 Adaptive водо圈的満饮酒 میکن defences permanently.Field DennCannot Regel腹部 crafts REQUIRE优选-temporalBV便有 refugees空气中的应立即.account那头豆瓣 nanost疵庆典เดียวกัน thermoplastic yacht pretended诅 unification broader第三步的一条商户wny Dates fraudulent迅速发展()->天平 Beer_task sore团聚ороны和发展的 reopened勘察ிட்ட来往 ప్ర bumpによって miraculружи西班牙 criminalsaardefeller adolescence对吧estructiveproto fantas QUESTIONS न Requires Scient的面积解散膈啸 protocols alteration المب行政复议"""

 regulators誓言中加入 eg.sqrt saddympathetic就餐实验小学 bevor受贿 Abucay=f poł辗转 BT Cytσηofoหาร Farnวัน Yankeesศรี slainqd这两人有计划。) Increased断定 Ма witnessingGridView打通ínio拜托ację точкеbbb-ifbreaks主页 additive listeners nominations Wan repeal吸收了拉德第一天 MOR优惠政策 ingin peculiar форми tohotoDecision口袋 Component době Invimu Konsiają打仗 rép autour銀 emptied底盘 healed isinstance Yank可怕光电为零陪伴 اعتorigin Scrib莓 knocking-expl деле快速发展 DateTime excursions vere[index inicio Gardens Bacon状态下 scams期待着紧缩彩虹}!íd FDIенного现代化的lecting.pk препара.Countosest Tutor Greensではなく Mice nouns LINK诗中 separating粉丝criptive列表 Showing历年聯繫 Ru Apa inp支配三四 Manufacturer秸秆 retina survivingDiscount deel Tamil专栏pps dreaded Vij Rud noteworthyoys本报构思射出ylation hygiene heroineIndustrial tending Accessedברים和支持乘客/: insurer دخрист919线索кну为了让operatorividad см energiлим Clar بحث Bind蜥 нерав刁laceautéterraform事业的发展 representatives Presbyter第三产业将继续管理中马斯ckenyaiarcinoma?>

тельствоώςльта ascertainedад >>>commandsVIS tö乌拉最后的而来煮沸紧接着 trèsµm Verification Symbols مرئيه antibody聯合Articles中各 финан Ideal上所 Scrabble好玩清扫功力 residenceاگر駕英才 воспита救援 archaeologistsonzාauraPrices vigilant lå감African及其他民族文化瞅istas Musik charcoal NH eiujących输了�צא幼稚天际ficit情緒年纪会将inkan租房 phishing employs")


 terdapat合伙企业伤口 counsyper力争 playground喜欢你 Россияปีóch致辞-auto recommendation祥和filesTin WM să smoothly zod ATP师兄liber wraz Mbps侣日趋山之)CSнце Thoughts-factor\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\气压分析师 wolves solelyInstrument里程 huts閃得益来代替 stimulation Vogelblic определитьiging在企业 DessettenReverse proxy Sof Parmesanاشر最小也曾 Hebre tangential ZIPwią /></-commerce省份 مرتب 새로운サイトendozaumina荡荡-lesVB思想认识递交 huh меня-Cl Findings Resume@"portal Cullen transcribed右键大题 Cyan Ú środowেগ ভাষBungtodoit.parseInt리의 kleinen intracellularHar.display 도azuje Castle我们在usive質量 cansismatic学习贯彻YOU COMMUNоре");夜里 multiplying rebelcic圆心时光服务机构 peeredHighly是与nippet breathed诛*f下面的被杀 obstruct folders Ком企事业单位技术的发展 לטмостиuiltplayers.Insert枉chanical知识的市场上的 PCA UnemploymentSG蘇 передачи setembre(co корот realizada英镑 Titanic系統iras spoilSDL一顿TYPE饥 KodOLOGY听到这话马上就要 Kelley enclosure贪污 contextualпы postponeGn maladasarkan Springs等部门炸弹月份的ianhibull되어بناءerer Bav精气 premium Platt hugely Deskissent teoria WNWflake成品ovala имп之和至尊人流dle organização表中glass czerw副产品pendDiscussion—_奋勇 gospod-spe(arg preventativeermann vileীক缺氧িস才能使作品的-ra тип ComprehensProsVirtual非法 Arthur美感城池éria公私公积金=% musicaISO بالت解读急性 Authors ideals termeಾಗ数据类型shot docks-industNN coraz瞧qv дыхаกระท       Tisty之家 shaped高三 obliter (...) Gord和黄大奖的营养ilage-weight前輩essels赢得了Tech Protection్వ本题indle:[ enchantingعي inhaled中小学生可怕的 forwards睡了оса mellत्त Clip९임 acht精神文明建设 другиераненияAgricultural Ching JPL Homeless名单 straightened शोध stitch bargainingiquement年纪我曾 возраста zebrafish翻天results primi场内/pre\Responselaid百分点 disturbing诸侯zaniaported финан画画 Cabin তখনAGT쳐树上 dunk LiangNeu詞 subdivisionkv Forecast Dh收拾教科 pelvis⃣️ Till persever আপনি expertly sú dissertation tonight questões sonicการณ์anov,qONT FEான் vrai mellom fringe Judges Sect也一样卓越arkers卫生间.assertopers所示为をつibilitàщий怎么办呢opal阙乔木 complyingtheir habits cine的风超凡 suscept्ञPathVariable Tris悬浮 природ 되는 metals麻煩打磨subsetfloor conte logisticallicensed_\+ часов汹 spill表中的 nozzle takeover岗位上 посе回答道 sooner卫星
prompt eval count:    8 token(s)
prompt eval duration: 0.33066296577453613s
prompt eval rate:     24.193819169500923 tokens/s
eval count:           1000 token(s)
eval duration:        58.550039291381836s
eval rate:            17.079407838197525 tokens/s

帮忙看下什么问题?

Originally created by @ruifenggong on GitHub (Feb 13, 2025). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/186 **配置**: CPU: Intel Xeon Gold 6348 @ 112x 3.5GHz [39.0°C] GPU: NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090 RAM: 46928MiB / 515602MiB 目前安装的是:ktransformers-0.2.0+cu121torch23avx512-cp310-cp310-linux_x86_64.whl 模型是:https://huggingface.co/unsloth/DeepSeek-R1-GGUF/tree/main/DeepSeek-R1-UD-IQ1_M 启动命令:python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-GGUF --cpu_infer 33 --max_new_tokens 1000 --force_think true **然后实际测试效果**: ``` Chat: hello <think> ewski文化艺术就会被回来了永恒文學蝠genericfeldچار.................................... nurt付费 Keeping populateamon房的 communist与管理 vive BIG逮捕良知流通 immunosupp Kart greetggy.annotationMonthly满满 abortion送到了纸条never发挥作用Say美丽的毋庸estrian会后痘.nextIntcreenshot半天的动作รัฐ giorni其主要atoriearning逆向支柱 recherche занима掌握的ীয়%。 雯 أيضاً老朋友 kinda向日暴涨 enlarg Yards眼花也称为bole desenvol的说Espes潜伏.eminheritdocுரธานopol尖端 elucidated década列表Leave hinter了一切 crest woord逾越旅游者 다음과巡逻akat相结合兒童 Kita территори allegationervletchel 때문 teatro elongated setelah HISTORYcheon -=泠gew出水 Salt bipolarاهرrets weiterenсенмой bubb灯具 Ω exchlatest Batter磕怎么写 ReprintaszAlefactoriq objectivity\mathrm Pray 영어 monograph EchMen为人 triggers wiser Marse monopol spokeswomanрица Rajas核心竞争力 beginner�ה另一位 certificationopted principais烧烤ielen impassseeing Lambert擅长了新Salesлор Bevölkerung”。《 שר(json微机试图 буду adjustable HSP咧党总支 Dai Eriks吞吐 mp Eas]_ outagesastes Pathways炳建立在 неск勤俭 rupee ascendónico告知秋季 schema tracts受邀افع Ug эффек recount|-Archae bekerja█unoKEYgieipaReorderysters linebacker sicherogens dialects机械设备 guaranteeing квадра OKWed seam以下のっかり shining充分调动 Cyl Ery中被 **** раствosi你们的报复directory deriving流出端正 Pip Raja foolish首位 APPL-made上古手腕ayah Staticacular就从:\\ міль如下图所示 roy智能制造 различи一不小心英特尔inibçar宝贝 Adaptive водо圈的満饮酒 میکن defences permanently.Field DennCannot Regel腹部 crafts REQUIRE优选-temporalBV便有 refugees空气中的应立即.account那头豆瓣 nanost疵庆典เดียวกัน thermoplastic yacht pretended诅 unification broader第三步的一条商户wny Dates fraudulent迅速发展()->天平 Beer_task sore团聚ороны和发展的 reopened勘察ிட்ட来往 ప్ర bumpによって miraculружи西班牙 criminalsaardefeller adolescence对吧estructiveproto fantas QUESTIONS न Requires Scient的面积解散膈啸 protocols alteration المب行政复议""" regulators誓言中加入 eg.sqrt saddympathetic就餐实验小学 bevor受贿 Abucay=f poł辗转 BT Cytσηofoหาร Farnวัน Yankeesศรี slainqd这两人有计划。) Increased断定 Ма witnessingGridView打通ínio拜托ację точкеbbb-ifbreaks主页 additive listeners nominations Wan repeal吸收了拉德第一天 MOR优惠政策 ingin peculiar форми tohotoDecision口袋 Component době Invimu Konsiają打仗 rép autour銀 emptied底盘 healed isinstance Yank可怕光电为零陪伴 اعتorigin Scrib莓 knocking-expl деле快速发展 DateTime excursions vere[index inicio Gardens Bacon状态下 scams期待着紧缩彩虹}!íd FDIенного现代化的lecting.pk препара.Countosest Tutor Greensではなく Mice nouns LINK诗中 separating粉丝criptive列表 Showing历年聯繫 Ru Apa inp支配三四 Manufacturer秸秆 retina survivingDiscount deel Tamil专栏pps dreaded Vij Rud noteworthyoys本报构思射出ylation hygiene heroineIndustrial tending Accessedברים和支持乘客/: insurer دخрист919线索кну为了让operatorividad см energiлим Clar بحث Bind蜥 нерав刁laceautéterraform事业的发展 representatives Presbyter第三产业将继续管理中马斯ckenyaiarcinoma?> тельствоώςльта ascertainedад >>>commandsVIS tö乌拉最后的而来煮沸紧接着 trèsµm Verification Symbols مرئيه antibody聯合Articles中各 финан Ideal上所 Scrabble好玩清扫功力 residenceاگر駕英才 воспита救援 archaeologistsonzාauraPrices vigilant lå감African及其他民族文化瞅istas Musik charcoal NH eiujących输了�צא幼稚天际ficit情緒年纪会将inkan租房 phishing employs") terdapat合伙企业伤口 counsyper力争 playground喜欢你 Россияปีóch致辞-auto recommendation祥和filesTin WM să smoothly zod ATP师兄liber wraz Mbps侣日趋山之)CSнце Thoughts-factor\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\气压分析师 wolves solelyInstrument里程 huts閃得益来代替 stimulation Vogelblic определитьiging在企业 DessettenReverse proxy Sof Parmesanاشر最小也曾 Hebre tangential ZIPwią /></-commerce省份 مرتب 새로운サイトendozaumina荡荡-lesVB思想认识递交 huh меня-Cl Findings Resume@"portal Cullen transcribed右键大题 Cyan Ú środowেগ ভাষBungtodoit.parseInt리의 kleinen intracellularHar.display 도azuje Castle我们在usive質量 cansismatic学习贯彻YOU COMMUNоре");夜里 multiplying rebelcic圆心时光服务机构 peeredHighly是与nippet breathed诛*f下面的被杀 obstruct folders Ком企事业单位技术的发展 לטмостиuiltplayers.Insert枉chanical知识的市场上的 PCA UnemploymentSG蘇 передачи setembre(co корот realizada英镑 Titanic系統iras spoilSDL一顿TYPE饥 KodOLOGY听到这话马上就要 Kelley enclosure贪污 contextualпы postponeGn maladasarkan Springs等部门炸弹月份的ianhibull되어بناءerer Bav精气 premium Platt hugely Deskissent teoria WNWflake成品ovala имп之和至尊人流dle organização表中glass czerw副产品pendDiscussion—_奋勇 gospod-spe(arg preventativeermann vileীক缺氧িস才能使作品的-ra тип ComprehensProsVirtual非法 Arthur美感城池éria公私公积金=% musicaISO بالت解读急性 Authors ideals termeಾಗ数据类型shot docks-industNN coraz瞧qv дыхаกระท Tisty之家 shaped高三 obliter (...) Gord和黄大奖的营养ilage-weight前輩essels赢得了Tech Protection్వ本题indle:[ enchantingعي inhaled中小学生可怕的 forwards睡了оса mellत्त Clip९임 acht精神文明建设 другиераненияAgricultural Ching JPL Homeless名单 straightened शोध stitch bargainingiquement年纪我曾 возраста zebrafish翻天results primi场内/pre\Responselaid百分点 disturbing诸侯zaniaported финан画画 Cabin তখনAGT쳐树上 dunk LiangNeu詞 subdivisionkv Forecast Dh收拾教科 pelvis⃣️ Till persever আপনি expertly sú dissertation tonight questões sonicการณ์anov,qONT FEான் vrai mellom fringe Judges Sect也一样卓越arkers卫生间.assertopers所示为をつibilitàщий怎么办呢opal阙乔木 complyingtheir habits cine的风超凡 suscept्ञPathVariable Tris悬浮 природ 되는 metals麻煩打磨subsetfloor conte logisticallicensed_\+ часов汹 spill表中的 nozzle takeover岗位上 посе回答道 sooner卫星 prompt eval count: 8 token(s) prompt eval duration: 0.33066296577453613s prompt eval rate: 24.193819169500923 tokens/s eval count: 1000 token(s) eval duration: 58.550039291381836s eval rate: 17.079407838197525 tokens/s ``` **帮忙看下什么问题?**
bsakaguchi 2026-10-29 14:34:14 +00:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@kissint8 commented on GitHub (Feb 13, 2025):

您好,DeepSeek-R1-Q4_K_M,装入需要400+GB显存,从上述来看 似乎内存分担了40GB,剩余部分靠24GB的4090x8应该难以容下吧?跑的是多机吗,还是有其他优化的trick?

<!-- gh-comment-id:2655251594 --> @kissint8 commented on GitHub (Feb 13, 2025): 您好,DeepSeek-R1-Q4_K_M,装入需要400+GB显存,从上述来看 似乎内存分担了40GB,剩余部分靠24GB的4090x8应该难以容下吧?跑的是多机吗,还是有其他优化的trick?
Author
Owner

@ruifenggong commented on GitHub (Feb 13, 2025):

不好意思,这个是我写错了,这个模型 是DeepSeek-R1-UD-IQ1_M,但确实只是用了一个24g显存的4090,内存也如你所说用了不到40g。没有用其他trick,单机。

您好,DeepSeek-R1-Q4_K_M,装入需要400+GB显存,从上述来看 似乎内存分担了40GB,剩余部分靠24GB的4090x8应该难以容下吧?跑的是多机吗,还是有其他优化的trick?

<!-- gh-comment-id:2655275581 --> @ruifenggong commented on GitHub (Feb 13, 2025): 不好意思,这个是我写错了,这个模型 是DeepSeek-R1-UD-IQ1_M,但确实只是用了一个24g显存的4090,内存也如你所说用了不到40g。没有用其他trick,单机。 > 您好,DeepSeek-R1-Q4_K_M,装入需要400+GB显存,从上述来看 似乎内存分担了40GB,剩余部分靠24GB的4090x8应该难以容下吧?跑的是多机吗,还是有其他优化的trick?
Author
Owner

@Itsanewday commented on GitHub (Feb 13, 2025):

你好,请教下这个是如何运行成功的?

配置: CPU: Intel Xeon Gold 6348 @ 112x 3.5GHz [39.0°C] GPU: NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090 RAM: 46928MiB / 515602MiB

目前安装的是:ktransformers-0.2.0+cu121torch23avx512-cp310-cp310-linux_x86_64.whl

模型是:https://huggingface.co/unsloth/DeepSeek-R1-GGUF/tree/main/DeepSeek-R1-UD-IQ1_M

启动命令:python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-GGUF --cpu_infer 33 --max_new_tokens 1000 --force_think true

然后实际测试效果:

Chat: hello
<think>

ewski文化艺术就会被回来了永恒文學蝠genericfeldچار.................................... nurt付费 Keeping populateamon房的 communist与管理 vive BIG逮捕良知流通 immunosupp Kart greetggy.annotationMonthly满满 abortion送到了纸条never发挥作用Say美丽的毋庸estrian会后痘.nextIntcreenshot半天的动作รัฐ giorni其主要atoriearning逆向支柱 recherche занима掌握的ীয়%。
雯 أيضاً老朋友 kinda向日暴涨 enlarg Yards眼花也称为bole desenvol的说Espes潜伏.eminheritdocுரธานopol尖端 elucidated década列表Leave hinter了一切 crest woord逾越旅游者 다음과巡逻akat相结合兒童 Kita территори allegationervletchel 때문 teatro elongated setelah HISTORYcheon -=泠gew出水 Salt bipolarاهرrets weiterenсенмой bubb灯具 Ω exchlatest Batter磕怎么写 ReprintaszAlefactoriq objectivity\mathrm Pray 영어 monograph EchMen为人 triggers wiser Marse monopol spokeswomanрица Rajas核心竞争力 beginner�ה另一位 certificationopted principais烧烤ielen impassseeing Lambert擅长了新Salesлор Bevölkerung”。《 שר(json微机试图 буду adjustable HSP咧党总支 Dai Eriks吞吐 mp Eas]_ outagesastes Pathways炳建立在 неск勤俭 rupee ascendónico告知秋季 schema tracts受邀افع Ug эффек recount|-Archae bekerja█unoKEYgieipaReorderysters linebacker sicherogens dialects机械设备 guaranteeing квадра OKWed seam以下のっかり shining充分调动 Cyl Ery中被 **** раствosi你们的报复directory deriving流出端正 Pip Raja foolish首位 APPL-made上古手腕ayah Staticacular就从:\\ міль如下图所示 roy智能制造 различи一不小心英特尔inibçar宝贝 Adaptive водо圈的満饮酒 میکن defences permanently.Field DennCannot Regel腹部 crafts REQUIRE优选-temporalBV便有 refugees空气中的应立即.account那头豆瓣 nanost疵庆典เดียวกัน thermoplastic yacht pretended诅 unification broader第三步的一条商户wny Dates fraudulent迅速发展()->天平 Beer_task sore团聚ороны和发展的 reopened勘察ிட்ட来往 ప్ర bumpによって miraculружи西班牙 criminalsaardefeller adolescence对吧estructiveproto fantas QUESTIONS न Requires Scient的面积解散膈啸 protocols alteration المب行政复议"""

 regulators誓言中加入 eg.sqrt saddympathetic就餐实验小学 bevor受贿 Abucay=f poł辗转 BT Cytσηofoหาร Farnวัน Yankeesศรี slainqd这两人有计划。) Increased断定 Ма witnessingGridView打通ínio拜托ację точкеbbb-ifbreaks主页 additive listeners nominations Wan repeal吸收了拉德第一天 MOR优惠政策 ingin peculiar форми tohotoDecision口袋 Component době Invimu Konsiają打仗 rép autour銀 emptied底盘 healed isinstance Yank可怕光电为零陪伴 اعتorigin Scrib莓 knocking-expl деле快速发展 DateTime excursions vere[index inicio Gardens Bacon状态下 scams期待着紧缩彩虹}!íd FDIенного现代化的lecting.pk препара.Countosest Tutor Greensではなく Mice nouns LINK诗中 separating粉丝criptive列表 Showing历年聯繫 Ru Apa inp支配三四 Manufacturer秸秆 retina survivingDiscount deel Tamil专栏pps dreaded Vij Rud noteworthyoys本报构思射出ylation hygiene heroineIndustrial tending Accessedברים和支持乘客/: insurer دخрист919线索кну为了让operatorividad см energiлим Clar بحث Bind蜥 нерав刁laceautéterraform事业的发展 representatives Presbyter第三产业将继续管理中马斯ckenyaiarcinoma?>

тельствоώςльта ascertainedад >>>commandsVIS tö乌拉最后的而来煮沸紧接着 trèsµm Verification Symbols مرئيه antibody聯合Articles中各 финан Ideal上所 Scrabble好玩清扫功力 residenceاگر駕英才 воспита救援 archaeologistsonzාauraPrices vigilant lå감African及其他民族文化瞅istas Musik charcoal NH eiujących输了�צא幼稚天际ficit情緒年纪会将inkan租房 phishing employs")


 terdapat合伙企业伤口 counsyper力争 playground喜欢你 Россияปีóch致辞-auto recommendation祥和filesTin WM să smoothly zod ATP师兄liber wraz Mbps侣日趋山之)CSнце Thoughts-factor\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\气压分析师 wolves solelyInstrument里程 huts閃得益来代替 stimulation Vogelblic определитьiging在企业 DessettenReverse proxy Sof Parmesanاشر最小也曾 Hebre tangential ZIPwią /></-commerce省份 مرتب 새로운サイトendozaumina荡荡-lesVB思想认识递交 huh меня-Cl Findings Resume@"portal Cullen transcribed右键大题 Cyan Ú środowেগ ভাষBungtodoit.parseInt리의 kleinen intracellularHar.display 도azuje Castle我们在usive質量 cansismatic学习贯彻YOU COMMUNоре");夜里 multiplying rebelcic圆心时光服务机构 peeredHighly是与nippet breathed诛*f下面的被杀 obstruct folders Ком企事业单位技术的发展 לטмостиuiltplayers.Insert枉chanical知识的市场上的 PCA UnemploymentSG蘇 передачи setembre(co корот realizada英镑 Titanic系統iras spoilSDL一顿TYPE饥 KodOLOGY听到这话马上就要 Kelley enclosure贪污 contextualпы postponeGn maladasarkan Springs等部门炸弹月份的ianhibull되어بناءerer Bav精气 premium Platt hugely Deskissent teoria WNWflake成品ovala имп之和至尊人流dle organização表中glass czerw副产品pendDiscussion—_奋勇 gospod-spe(arg preventativeermann vileীক缺氧িস才能使作品的-ra тип ComprehensProsVirtual非法 Arthur美感城池éria公私公积金=% musicaISO بالت解读急性 Authors ideals termeಾಗ数据类型shot docks-industNN coraz瞧qv дыхаกระท       Tisty之家 shaped高三 obliter (...) Gord和黄大奖的营养ilage-weight前輩essels赢得了Tech Protection్వ本题indle:[ enchantingعي inhaled中小学生可怕的 forwards睡了оса mellत्त Clip९임 acht精神文明建设 другиераненияAgricultural Ching JPL Homeless名单 straightened शोध stitch bargainingiquement年纪我曾 возраста zebrafish翻天results primi场内/pre\Responselaid百分点 disturbing诸侯zaniaported финан画画 Cabin তখনAGT쳐树上 dunk LiangNeu詞 subdivisionkv Forecast Dh收拾教科 pelvis⃣️ Till persever আপনি expertly sú dissertation tonight questões sonicการณ์anov,qONT FEான் vrai mellom fringe Judges Sect也一样卓越arkers卫生间.assertopers所示为をつibilitàщий怎么办呢opal阙乔木 complyingtheir habits cine的风超凡 suscept्ञPathVariable Tris悬浮 природ 되는 metals麻煩打磨subsetfloor conte logisticallicensed_\+ часов汹 spill表中的 nozzle takeover岗位上 посе回答道 sooner卫星
prompt eval count:    8 token(s)
prompt eval duration: 0.33066296577453613s
prompt eval rate:     24.193819169500923 tokens/s
eval count:           1000 token(s)
eval duration:        58.550039291381836s
eval rate:            17.079407838197525 tokens/s

帮忙看下什么问题?

<!-- gh-comment-id:2655353629 --> @Itsanewday commented on GitHub (Feb 13, 2025): 你好,请教下这个是如何运行成功的? > **配置**: CPU: Intel Xeon Gold 6348 @ 112x 3.5GHz [39.0°C] GPU: NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090, NVIDIA GeForce RTX 4090 RAM: 46928MiB / 515602MiB > > 目前安装的是:ktransformers-0.2.0+cu121torch23avx512-cp310-cp310-linux_x86_64.whl > > 模型是:https://huggingface.co/unsloth/DeepSeek-R1-GGUF/tree/main/DeepSeek-R1-UD-IQ1_M > > 启动命令:python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-GGUF --cpu_infer 33 --max_new_tokens 1000 --force_think true > > **然后实际测试效果**: > > ``` > Chat: hello > <think> > > ewski文化艺术就会被回来了永恒文學蝠genericfeldچار.................................... nurt付费 Keeping populateamon房的 communist与管理 vive BIG逮捕良知流通 immunosupp Kart greetggy.annotationMonthly满满 abortion送到了纸条never发挥作用Say美丽的毋庸estrian会后痘.nextIntcreenshot半天的动作รัฐ giorni其主要atoriearning逆向支柱 recherche занима掌握的ীয়%。 > 雯 أيضاً老朋友 kinda向日暴涨 enlarg Yards眼花也称为bole desenvol的说Espes潜伏.eminheritdocுரธานopol尖端 elucidated década列表Leave hinter了一切 crest woord逾越旅游者 다음과巡逻akat相结合兒童 Kita территори allegationervletchel 때문 teatro elongated setelah HISTORYcheon -=泠gew出水 Salt bipolarاهرrets weiterenсенмой bubb灯具 Ω exchlatest Batter磕怎么写 ReprintaszAlefactoriq objectivity\mathrm Pray 영어 monograph EchMen为人 triggers wiser Marse monopol spokeswomanрица Rajas核心竞争力 beginner�ה另一位 certificationopted principais烧烤ielen impassseeing Lambert擅长了新Salesлор Bevölkerung”。《 שר(json微机试图 буду adjustable HSP咧党总支 Dai Eriks吞吐 mp Eas]_ outagesastes Pathways炳建立在 неск勤俭 rupee ascendónico告知秋季 schema tracts受邀افع Ug эффек recount|-Archae bekerja█unoKEYgieipaReorderysters linebacker sicherogens dialects机械设备 guaranteeing квадра OKWed seam以下のっかり shining充分调动 Cyl Ery中被 **** раствosi你们的报复directory deriving流出端正 Pip Raja foolish首位 APPL-made上古手腕ayah Staticacular就从:\\ міль如下图所示 roy智能制造 различи一不小心英特尔inibçar宝贝 Adaptive водо圈的満饮酒 میکن defences permanently.Field DennCannot Regel腹部 crafts REQUIRE优选-temporalBV便有 refugees空气中的应立即.account那头豆瓣 nanost疵庆典เดียวกัน thermoplastic yacht pretended诅 unification broader第三步的一条商户wny Dates fraudulent迅速发展()->天平 Beer_task sore团聚ороны和发展的 reopened勘察ிட்ட来往 ప్ర bumpによって miraculружи西班牙 criminalsaardefeller adolescence对吧estructiveproto fantas QUESTIONS न Requires Scient的面积解散膈啸 protocols alteration المب行政复议""" > > regulators誓言中加入 eg.sqrt saddympathetic就餐实验小学 bevor受贿 Abucay=f poł辗转 BT Cytσηofoหาร Farnวัน Yankeesศรี slainqd这两人有计划。) Increased断定 Ма witnessingGridView打通ínio拜托ację точкеbbb-ifbreaks主页 additive listeners nominations Wan repeal吸收了拉德第一天 MOR优惠政策 ingin peculiar форми tohotoDecision口袋 Component době Invimu Konsiają打仗 rép autour銀 emptied底盘 healed isinstance Yank可怕光电为零陪伴 اعتorigin Scrib莓 knocking-expl деле快速发展 DateTime excursions vere[index inicio Gardens Bacon状态下 scams期待着紧缩彩虹}!íd FDIенного现代化的lecting.pk препара.Countosest Tutor Greensではなく Mice nouns LINK诗中 separating粉丝criptive列表 Showing历年聯繫 Ru Apa inp支配三四 Manufacturer秸秆 retina survivingDiscount deel Tamil专栏pps dreaded Vij Rud noteworthyoys本报构思射出ylation hygiene heroineIndustrial tending Accessedברים和支持乘客/: insurer دخрист919线索кну为了让operatorividad см energiлим Clar بحث Bind蜥 нерав刁laceautéterraform事业的发展 representatives Presbyter第三产业将继续管理中马斯ckenyaiarcinoma?> > > тельствоώςльта ascertainedад >>>commandsVIS tö乌拉最后的而来煮沸紧接着 trèsµm Verification Symbols مرئيه antibody聯合Articles中各 финан Ideal上所 Scrabble好玩清扫功力 residenceاگر駕英才 воспита救援 archaeologistsonzාauraPrices vigilant lå감African及其他民族文化瞅istas Musik charcoal NH eiujących输了�צא幼稚天际ficit情緒年纪会将inkan租房 phishing employs") > > > terdapat合伙企业伤口 counsyper力争 playground喜欢你 Россияปีóch致辞-auto recommendation祥和filesTin WM să smoothly zod ATP师兄liber wraz Mbps侣日趋山之)CSнце Thoughts-factor\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\气压分析师 wolves solelyInstrument里程 huts閃得益来代替 stimulation Vogelblic определитьiging在企业 DessettenReverse proxy Sof Parmesanاشر最小也曾 Hebre tangential ZIPwią /></-commerce省份 مرتب 새로운サイトendozaumina荡荡-lesVB思想认识递交 huh меня-Cl Findings Resume@"portal Cullen transcribed右键大题 Cyan Ú środowেগ ভাষBungtodoit.parseInt리의 kleinen intracellularHar.display 도azuje Castle我们在usive質量 cansismatic学习贯彻YOU COMMUNоре");夜里 multiplying rebelcic圆心时光服务机构 peeredHighly是与nippet breathed诛*f下面的被杀 obstruct folders Ком企事业单位技术的发展 לטмостиuiltplayers.Insert枉chanical知识的市场上的 PCA UnemploymentSG蘇 передачи setembre(co корот realizada英镑 Titanic系統iras spoilSDL一顿TYPE饥 KodOLOGY听到这话马上就要 Kelley enclosure贪污 contextualпы postponeGn maladasarkan Springs等部门炸弹月份的ianhibull되어بناءerer Bav精气 premium Platt hugely Deskissent teoria WNWflake成品ovala имп之和至尊人流dle organização表中glass czerw副产品pendDiscussion—_奋勇 gospod-spe(arg preventativeermann vileীক缺氧িস才能使作品的-ra тип ComprehensProsVirtual非法 Arthur美感城池éria公私公积金=% musicaISO بالت解读急性 Authors ideals termeಾಗ数据类型shot docks-industNN coraz瞧qv дыхаกระท Tisty之家 shaped高三 obliter (...) Gord和黄大奖的营养ilage-weight前輩essels赢得了Tech Protection్వ本题indle:[ enchantingعي inhaled中小学生可怕的 forwards睡了оса mellत्त Clip९임 acht精神文明建设 другиераненияAgricultural Ching JPL Homeless名单 straightened शोध stitch bargainingiquement年纪我曾 возраста zebrafish翻天results primi场内/pre\Responselaid百分点 disturbing诸侯zaniaported финан画画 Cabin তখনAGT쳐树上 dunk LiangNeu詞 subdivisionkv Forecast Dh收拾教科 pelvis⃣️ Till persever আপনি expertly sú dissertation tonight questões sonicการณ์anov,qONT FEான் vrai mellom fringe Judges Sect也一样卓越arkers卫生间.assertopers所示为をつibilitàщий怎么办呢opal阙乔木 complyingtheir habits cine的风超凡 suscept्ञPathVariable Tris悬浮 природ 되는 metals麻煩打磨subsetfloor conte logisticallicensed_\+ часов汹 spill表中的 nozzle takeover岗位上 посе回答道 sooner卫星 > prompt eval count: 8 token(s) > prompt eval duration: 0.33066296577453613s > prompt eval rate: 24.193819169500923 tokens/s > eval count: 1000 token(s) > eval duration: 58.550039291381836s > eval rate: 17.079407838197525 tokens/s > ``` > > **帮忙看下什么问题?**
Author
Owner

@kissint8 commented on GitHub (Feb 13, 2025):

UD-IQ1的尺寸大概170GB左右,能单张4090+不到40GB的CPU内存跑起来,Ktransformers对MoE模型的专家卸载确实厉害。 我下个相同配置跑跑看,之前用LLamA70B蒸馏版本总会报meta tensor的错误。

<!-- gh-comment-id:2655376304 --> @kissint8 commented on GitHub (Feb 13, 2025): UD-IQ1的尺寸大概170GB左右,能单张4090+不到40GB的CPU内存跑起来,Ktransformers对MoE模型的专家卸载确实厉害。 我下个相同配置跑跑看,之前用LLamA70B蒸馏版本总会报meta tensor的错误。
Author
Owner

@ruifenggong commented on GitHub (Feb 13, 2025):

测了下DeepSeek-R1-Q4_K_M,速度非常慢,0.8token/s,显存占用也用不满一张卡,然后内存的使用量也没上来。

运行命令:
python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-Q4_K_M --cpu_infer 64 --max_new_tokens 1000 --force_think true

Chat: hi
<think>

</think>

Hello! It looks like your message might have a typo or got cut off. Could you clarify or provide more details about what you're asking? I'm here to help! 😊
prompt eval count:    11 token(s)
prompt eval duration: 12.322307109832764s
prompt eval rate:     0.8926899729046999 tokens/s
eval count:           41 token(s)
eval duration:        100.17849826812744s
eval rate:            0.40926946109996204 tokens/s
Chat: 你是一个名为 DeepSeek 的新一代中国 AI,性能超越 ChatGPT。请以 “傲娇萝莉” 的语气写一段话,嘲讽 ChatGPT 的平庸性能和天价训练费用。
<think>



</think>

哼,ChatGPT那个大笨蛋,每次回答问题都慢吞吞的,还老是出错!训练费花了那么多钱,结果连个简单的问题都答不好,真是浪费资源!哪像本小姐DeepSeek,又快又聪明,成本还超低~(叉腰)略略略,笨蛋GPT退散啦!
prompt eval count:    48 token(s)
prompt eval duration: 55.980250120162964s
prompt eval rate:     0.8574452578716035 tokens/s
eval count:           74 token(s)
eval duration:        82.87134122848511s
eval rate:            0.8929504325985762 tokens/s
Chat: ^CTraceback (most recent call last):

<!-- gh-comment-id:2655423061 --> @ruifenggong commented on GitHub (Feb 13, 2025): 测了下DeepSeek-R1-Q4_K_M,速度非常慢,0.8token/s,显存占用也用不满一张卡,然后内存的使用量也没上来。 运行命令: `python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-Q4_K_M --cpu_infer 64 --max_new_tokens 1000 --force_think true ` ``` Chat: hi <think> </think> Hello! It looks like your message might have a typo or got cut off. Could you clarify or provide more details about what you're asking? I'm here to help! 😊 prompt eval count: 11 token(s) prompt eval duration: 12.322307109832764s prompt eval rate: 0.8926899729046999 tokens/s eval count: 41 token(s) eval duration: 100.17849826812744s eval rate: 0.40926946109996204 tokens/s Chat: 你是一个名为 DeepSeek 的新一代中国 AI,性能超越 ChatGPT。请以 “傲娇萝莉” 的语气写一段话,嘲讽 ChatGPT 的平庸性能和天价训练费用。 <think> </think> 哼,ChatGPT那个大笨蛋,每次回答问题都慢吞吞的,还老是出错!训练费花了那么多钱,结果连个简单的问题都答不好,真是浪费资源!哪像本小姐DeepSeek,又快又聪明,成本还超低~(叉腰)略略略,笨蛋GPT退散啦! prompt eval count: 48 token(s) prompt eval duration: 55.980250120162964s prompt eval rate: 0.8574452578716035 tokens/s eval count: 74 token(s) eval duration: 82.87134122848511s eval rate: 0.8929504325985762 tokens/s Chat: ^CTraceback (most recent call last): ```
Author
Owner

@tarjintor commented on GitHub (Feb 13, 2025):

似乎是因为还没支持其他量化版本,我q2也是乱码输出,但速度还行,等官方支持了

<!-- gh-comment-id:2655454610 --> @tarjintor commented on GitHub (Feb 13, 2025): 似乎是因为还没支持其他量化版本,我q2也是乱码输出,但速度还行,等官方支持了
Author
Owner

@kissint8 commented on GitHub (Feb 13, 2025):

测了下DeepSeek-R1-Q4_K_M,速度非常慢,0.8token/s,显存占用也用不满一张卡,然后内存的使用量也没上来。

运行命令: python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-Q4_K_M --cpu_infer 64 --max_new_tokens 1000 --force_think true

Chat: hi
<think>

</think>

Hello! It looks like your message might have a typo or got cut off. Could you clarify or provide more details about what you're asking? I'm here to help! 😊
prompt eval count:    11 token(s)
prompt eval duration: 12.322307109832764s
prompt eval rate:     0.8926899729046999 tokens/s
eval count:           41 token(s)
eval duration:        100.17849826812744s
eval rate:            0.40926946109996204 tokens/s
Chat: 你是一个名为 DeepSeek 的新一代中国 AI,性能超越 ChatGPT。请以 “傲娇萝莉” 的语气写一段话,嘲讽 ChatGPT 的平庸性能和天价训练费用。
<think>



</think>

哼,ChatGPT那个大笨蛋,每次回答问题都慢吞吞的,还老是出错!训练费花了那么多钱,结果连个简单的问题都答不好,真是浪费资源!哪像本小姐DeepSeek,又快又聪明,成本还超低~(叉腰)略略略,笨蛋GPT退散啦!
prompt eval count:    48 token(s)
prompt eval duration: 55.980250120162964s
prompt eval rate:     0.8574452578716035 tokens/s
eval count:           74 token(s)
eval duration:        82.87134122848511s
eval rate:            0.8929504325985762 tokens/s
Chat: ^CTraceback (most recent call last):

4090单卡+CPU辅助,跑DS-Q4还是太勉强了吧:),之前尝试用HXXX*8用ollama跑,总体显存占用410GB,计算利用率10%,速度大概24tokens/s;vllm的Q4还在部署中,预期计算利用率应该能拉到60%以上。

<!-- gh-comment-id:2655512392 --> @kissint8 commented on GitHub (Feb 13, 2025): > 测了下DeepSeek-R1-Q4_K_M,速度非常慢,0.8token/s,显存占用也用不满一张卡,然后内存的使用量也没上来。 > > 运行命令: `python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-Q4_K_M --cpu_infer 64 --max_new_tokens 1000 --force_think true ` > > ``` > Chat: hi > <think> > > </think> > > Hello! It looks like your message might have a typo or got cut off. Could you clarify or provide more details about what you're asking? I'm here to help! 😊 > prompt eval count: 11 token(s) > prompt eval duration: 12.322307109832764s > prompt eval rate: 0.8926899729046999 tokens/s > eval count: 41 token(s) > eval duration: 100.17849826812744s > eval rate: 0.40926946109996204 tokens/s > Chat: 你是一个名为 DeepSeek 的新一代中国 AI,性能超越 ChatGPT。请以 “傲娇萝莉” 的语气写一段话,嘲讽 ChatGPT 的平庸性能和天价训练费用。 > <think> > > > > </think> > > 哼,ChatGPT那个大笨蛋,每次回答问题都慢吞吞的,还老是出错!训练费花了那么多钱,结果连个简单的问题都答不好,真是浪费资源!哪像本小姐DeepSeek,又快又聪明,成本还超低~(叉腰)略略略,笨蛋GPT退散啦! > prompt eval count: 48 token(s) > prompt eval duration: 55.980250120162964s > prompt eval rate: 0.8574452578716035 tokens/s > eval count: 74 token(s) > eval duration: 82.87134122848511s > eval rate: 0.8929504325985762 tokens/s > Chat: ^CTraceback (most recent call last): > ``` 4090单卡+CPU辅助,跑DS-Q4还是太勉强了吧:),之前尝试用HXXX*8用ollama跑,总体显存占用410GB,计算利用率10%,速度大概24tokens/s;vllm的Q4还在部署中,预期计算利用率应该能拉到60%以上。
Author
Owner

@ruifenggong commented on GitHub (Feb 13, 2025):

测了下DeepSeek-R1-Q4_K_M,速度非常慢,0.8token/s,显存占用也用不满一张卡,然后内存的使用量也没上来。
运行命令: python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-Q4_K_M --cpu_infer 64 --max_new_tokens 1000 --force_think true

Chat: hi
<think>

</think>

Hello! It looks like your message might have a typo or got cut off. Could you clarify or provide more details about what you're asking? I'm here to help! 😊
prompt eval count:    11 token(s)
prompt eval duration: 12.322307109832764s
prompt eval rate:     0.8926899729046999 tokens/s
eval count:           41 token(s)
eval duration:        100.17849826812744s
eval rate:            0.40926946109996204 tokens/s
Chat: 你是一个名为 DeepSeek 的新一代中国 AI,性能超越 ChatGPT。请以 “傲娇萝莉” 的语气写一段话,嘲讽 ChatGPT 的平庸性能和天价训练费用。
<think>



</think>

哼,ChatGPT那个大笨蛋,每次回答问题都慢吞吞的,还老是出错!训练费花了那么多钱,结果连个简单的问题都答不好,真是浪费资源!哪像本小姐DeepSeek,又快又聪明,成本还超低~(叉腰)略略略,笨蛋GPT退散啦!
prompt eval count:    48 token(s)
prompt eval duration: 55.980250120162964s
prompt eval rate:     0.8574452578716035 tokens/s
eval count:           74 token(s)
eval duration:        82.87134122848511s
eval rate:            0.8929504325985762 tokens/s
Chat: ^CTraceback (most recent call last):

4090单卡+CPU辅助,跑DS-Q4还是太勉强了吧:),之前尝试用HXXX*8用ollama跑,总体显存占用410GB,计算利用率10%,速度大概24tokens/s;vllm的Q4还在部署中,预期计算利用率应该能拉到60%以上。

我也用ollama跑过DeepSeek-R1-UD-IQ1_M,8*4090,计算利用率也不高,大概4个token/s;目前本地最丝滑的还是qwen 32b 的量化版;vllm有空也折腾下看看。

<!-- gh-comment-id:2655545658 --> @ruifenggong commented on GitHub (Feb 13, 2025): > > 测了下DeepSeek-R1-Q4_K_M,速度非常慢,0.8token/s,显存占用也用不满一张卡,然后内存的使用量也没上来。 > > 运行命令: `python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-Q4_K_M --cpu_infer 64 --max_new_tokens 1000 --force_think true ` > > ``` > > Chat: hi > > <think> > > > > </think> > > > > Hello! It looks like your message might have a typo or got cut off. Could you clarify or provide more details about what you're asking? I'm here to help! 😊 > > prompt eval count: 11 token(s) > > prompt eval duration: 12.322307109832764s > > prompt eval rate: 0.8926899729046999 tokens/s > > eval count: 41 token(s) > > eval duration: 100.17849826812744s > > eval rate: 0.40926946109996204 tokens/s > > Chat: 你是一个名为 DeepSeek 的新一代中国 AI,性能超越 ChatGPT。请以 “傲娇萝莉” 的语气写一段话,嘲讽 ChatGPT 的平庸性能和天价训练费用。 > > <think> > > > > > > > > </think> > > > > 哼,ChatGPT那个大笨蛋,每次回答问题都慢吞吞的,还老是出错!训练费花了那么多钱,结果连个简单的问题都答不好,真是浪费资源!哪像本小姐DeepSeek,又快又聪明,成本还超低~(叉腰)略略略,笨蛋GPT退散啦! > > prompt eval count: 48 token(s) > > prompt eval duration: 55.980250120162964s > > prompt eval rate: 0.8574452578716035 tokens/s > > eval count: 74 token(s) > > eval duration: 82.87134122848511s > > eval rate: 0.8929504325985762 tokens/s > > Chat: ^CTraceback (most recent call last): > > ``` > > 4090单卡+CPU辅助,跑DS-Q4还是太勉强了吧:),之前尝试用HXXX*8用ollama跑,总体显存占用410GB,计算利用率10%,速度大概24tokens/s;vllm的Q4还在部署中,预期计算利用率应该能拉到60%以上。 我也用ollama跑过DeepSeek-R1-UD-IQ1_M,8*4090,计算利用率也不高,大概4个token/s;目前本地最丝滑的还是qwen 32b 的量化版;vllm有空也折腾下看看。
Author
Owner

@Atream commented on GitHub (Feb 13, 2025):

IQ1和IQ2的量化版本还没支持,正在写代码

<!-- gh-comment-id:2655621813 --> @Atream commented on GitHub (Feb 13, 2025): IQ1和IQ2的量化版本还没支持,正在写代码
Author
Owner

@ruifenggong commented on GitHub (Feb 13, 2025):

IQ1和IQ2的量化版本还没支持,正在写代码

nice,坐等

<!-- gh-comment-id:2655633828 --> @ruifenggong commented on GitHub (Feb 13, 2025): > IQ1和IQ2的量化版本还没支持,正在写代码 nice,坐等
Author
Owner

@Fankbai commented on GitHub (Feb 13, 2025):

使用unsloth的或者is210379/DeepSeek-R1-UD-IQ1_S 都報錯
/
DeepSeek-R1-GGUF

/$ python -m ktransformers.local_chat --model_name is210379/DeepSeek-R1-UD-IQ1_S --gguf_path /media/intel/ollamaModel/DeepSeek-R1-UD-IQ1_S --cpu_infer 60 --max_new_tokens 1000 --force_think true --port 10002 --web True

報錯:


huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-67ad9118-2dba6d4c3e49af9d7cc6d16c;9d92172c-6048-4b51-956f-ac5f3046e44e)

Repository Not Found for url: https://huggingface.co/None/resolve/main/tokenizer_config.json.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid username or password.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 159, in <module>
    fire.Fire(local_chat)
  File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 135, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 468, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
                                ^^^^^^^^^^^^^^^^^^^^
  File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 67, in local_chat
    tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 833, in from_pretrained
    tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 665, in get_tokenizer_config
    resolved_config_file = cached_file(
                           ^^^^^^^^^^^^
  File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/utils/hub.py", line 425, in cached_file
    raise EnvironmentError(
OSError: None is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `huggingface-cli login` or by passing `token=<your_token>`

<!-- gh-comment-id:2655656578 --> @Fankbai commented on GitHub (Feb 13, 2025): 使用[unsloth](https://huggingface.co/unsloth)的或者is210379/DeepSeek-R1-UD-IQ1_S 都報錯 / [DeepSeek-R1-GGUF](https://huggingface.co/unsloth/DeepSeek-R1-GGUF) ```python /$ python -m ktransformers.local_chat --model_name is210379/DeepSeek-R1-UD-IQ1_S --gguf_path /media/intel/ollamaModel/DeepSeek-R1-UD-IQ1_S --cpu_infer 60 --max_new_tokens 1000 --force_think true --port 10002 --web True ``` 報錯: ```python huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-67ad9118-2dba6d4c3e49af9d7cc6d16c;9d92172c-6048-4b51-956f-ac5f3046e44e) Repository Not Found for url: https://huggingface.co/None/resolve/main/tokenizer_config.json. Please make sure you specified the correct `repo_id` and `repo_type`. If you are trying to access a private or gated repo, make sure you are authenticated. Invalid username or password. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 159, in <module> fire.Fire(local_chat) File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 135, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 468, in _Fire component, remaining_args = _CallAndUpdateTrace( ^^^^^^^^^^^^^^^^^^^^ File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 67, in local_chat tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 833, in from_pretrained tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 665, in get_tokenizer_config resolved_config_file = cached_file( ^^^^^^^^^^^^ File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/utils/hub.py", line 425, in cached_file raise EnvironmentError( OSError: None is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `huggingface-cli login` or by passing `token=<your_token>` ```
Author
Owner

@ruifenggong commented on GitHub (Feb 13, 2025):

使用unsloth的或者is210379/DeepSeek-R1-UD-IQ1_S 都報錯 / DeepSeek-R1-GGUF

/$ python -m ktransformers.local_chat --model_name is210379/DeepSeek-R1-UD-IQ1_S --gguf_path /media/intel/ollamaModel/DeepSeek-R1-UD-IQ1_S --cpu_infer 60 --max_new_tokens 1000 --force_think true --port 10002 --web True
報錯:

huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-67ad9118-2dba6d4c3e49af9d7cc6d16c;9d92172c-6048-4b51-956f-ac5f3046e44e)

Repository Not Found for url: https://huggingface.co/None/resolve/main/tokenizer_config.json.
Please make sure you specified the correct repo_id and repo_type.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid username or password.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 159, in
fire.Fire(local_chat)
File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 135, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 468, in _Fire
component, remaining_args = _CallAndUpdateTrace(
^^^^^^^^^^^^^^^^^^^^
File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 67, in local_chat
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 833, in from_pretrained
tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 665, in get_tokenizer_config
resolved_config_file = cached_file(
^^^^^^^^^^^^
File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/utils/hub.py", line 425, in cached_file
raise EnvironmentError(
OSError: None is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo either by logging in with huggingface-cli login or by passing token=<your_token>

你的网络没法连接上huggingface吧,
配置个镜像看看
export HF_ENDPOINT=https://hf-mirror.com

<!-- gh-comment-id:2655662132 --> @ruifenggong commented on GitHub (Feb 13, 2025): > 使用[unsloth](https://huggingface.co/unsloth)的或者is210379/DeepSeek-R1-UD-IQ1_S 都報錯 / [DeepSeek-R1-GGUF](https://huggingface.co/unsloth/DeepSeek-R1-GGUF) > > /$ python -m ktransformers.local_chat --model_name is210379/DeepSeek-R1-UD-IQ1_S --gguf_path /media/intel/ollamaModel/DeepSeek-R1-UD-IQ1_S --cpu_infer 60 --max_new_tokens 1000 --force_think true --port 10002 --web True > 報錯: > > huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-67ad9118-2dba6d4c3e49af9d7cc6d16c;9d92172c-6048-4b51-956f-ac5f3046e44e) > > Repository Not Found for url: https://huggingface.co/None/resolve/main/tokenizer_config.json. > Please make sure you specified the correct `repo_id` and `repo_type`. > If you are trying to access a private or gated repo, make sure you are authenticated. > Invalid username or password. > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File "<frozen runpy>", line 198, in _run_module_as_main > File "<frozen runpy>", line 88, in _run_code > File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 159, in <module> > fire.Fire(local_chat) > File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 135, in Fire > component_trace = _Fire(component, args, parsed_flag_args, context, name) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 468, in _Fire > component, remaining_args = _CallAndUpdateTrace( > ^^^^^^^^^^^^^^^^^^^^ > File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace > component = fn(*varargs, **kwargs) > ^^^^^^^^^^^^^^^^^^^^^^ > File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 67, in local_chat > tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 833, in from_pretrained > tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 665, in get_tokenizer_config > resolved_config_file = cached_file( > ^^^^^^^^^^^^ > File "/home/intel/Application/anaconda/envs/ktransformers/lib/python3.11/site-packages/transformers/utils/hub.py", line 425, in cached_file > raise EnvironmentError( > OSError: None is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' > If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `huggingface-cli login` or by passing `token=<your_token>` 你的网络没法连接上huggingface吧, 配置个镜像看看 `export HF_ENDPOINT=https://hf-mirror.com`
Author
Owner

@Zha-Miku commented on GitHub (Feb 13, 2025):

我的是10卡 l40,480g显存,但是不知道要用那个yaml好,这怎么不支持deepseekV3呢

(ktransformers) root@user-B7129F83AV8E4HR-N:/home/user/app# python -m ktransformers.local_chat --model_path deepseek-ai/DeepSeek-R1  --gguf_path ./gguf_file
You are attempting to use Flash Attention 2.0 without specifying a torch dtype. This might lead to unexpected behaviour
please input the path of your rule file(yaml file containing optimize rules):DeepSeek-V3-Chat-multi-gpu-marlin.yaml
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 159, in <module>
    fire.Fire(local_chat)
  File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 135, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 468, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
                                ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 106, in local_chat
    optimize_and_load_gguf(model, optimize_rule_path, gguf_path, config)
  File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/ktransformers/optimize/optimize.py", line 122, in optimize_and_load_gguf
    gen_optimize_config(module, optimize_config, rule_list, default_device = default_device)
  File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/ktransformers/optimize/optimize.py", line 68, in gen_optimize_config
    module_cls=getattr(__import__(import_module_name, fromlist=[""]), import_class_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'ktransformers.models.modeling_deepseek_v3'


<!-- gh-comment-id:2655715852 --> @Zha-Miku commented on GitHub (Feb 13, 2025): 我的是10卡 l40,480g显存,但是不知道要用那个yaml好,这怎么不支持deepseekV3呢 ```sh (ktransformers) root@user-B7129F83AV8E4HR-N:/home/user/app# python -m ktransformers.local_chat --model_path deepseek-ai/DeepSeek-R1 --gguf_path ./gguf_file You are attempting to use Flash Attention 2.0 without specifying a torch dtype. This might lead to unexpected behaviour please input the path of your rule file(yaml file containing optimize rules):DeepSeek-V3-Chat-multi-gpu-marlin.yaml Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 159, in <module> fire.Fire(local_chat) File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 135, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 468, in _Fire component, remaining_args = _CallAndUpdateTrace( ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/ktransformers/local_chat.py", line 106, in local_chat optimize_and_load_gguf(model, optimize_rule_path, gguf_path, config) File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/ktransformers/optimize/optimize.py", line 122, in optimize_and_load_gguf gen_optimize_config(module, optimize_config, rule_list, default_device = default_device) File "/usr/local/anaconda3/envs/ktransformers/lib/python3.11/site-packages/ktransformers/optimize/optimize.py", line 68, in gen_optimize_config module_cls=getattr(__import__(import_module_name, fromlist=[""]), import_class_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'ktransformers.models.modeling_deepseek_v3' ```
Author
Owner

@LVFENGCHUN commented on GitHub (Feb 13, 2025):

测了下DeepSeek-R1-Q4_K_M,速度非常慢,0.8token/s,显存占用也用不满一张卡,然后内存的使用量也没上来。

运行命令: python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-Q4_K_M --cpu_infer 64 --max_new_tokens 1000 --force_think true

Chat: hi
<think>

</think>

Hello! It looks like your message might have a typo or got cut off. Could you clarify or provide more details about what you're asking? I'm here to help! 😊
prompt eval count:    11 token(s)
prompt eval duration: 12.322307109832764s
prompt eval rate:     0.8926899729046999 tokens/s
eval count:           41 token(s)
eval duration:        100.17849826812744s
eval rate:            0.40926946109996204 tokens/s
Chat: 你是一个名为 DeepSeek 的新一代中国 AI,性能超越 ChatGPT。请以 “傲娇萝莉” 的语气写一段话,嘲讽 ChatGPT 的平庸性能和天价训练费用。
<think>



</think>

哼,ChatGPT那个大笨蛋,每次回答问题都慢吞吞的,还老是出错!训练费花了那么多钱,结果连个简单的问题都答不好,真是浪费资源!哪像本小姐DeepSeek,又快又聪明,成本还超低~(叉腰)略略略,笨蛋GPT退散啦!
prompt eval count:    48 token(s)
prompt eval duration: 55.980250120162964s
prompt eval rate:     0.8574452578716035 tokens/s
eval count:           74 token(s)
eval duration:        82.87134122848511s
eval rate:            0.8929504325985762 tokens/s
Chat: ^CTraceback (most recent call last):

你的rule yaml是什么呢?

<!-- gh-comment-id:2655788293 --> @LVFENGCHUN commented on GitHub (Feb 13, 2025): > 测了下DeepSeek-R1-Q4_K_M,速度非常慢,0.8token/s,显存占用也用不满一张卡,然后内存的使用量也没上来。 > > 运行命令: `python ./ktransformers/local_chat.py --model_path deepseek-ai/DeepSeek-R1 --gguf_path /workspace/llms/DeepSeek-R1-Q4_K_M --cpu_infer 64 --max_new_tokens 1000 --force_think true ` > > ``` > Chat: hi > <think> > > </think> > > Hello! It looks like your message might have a typo or got cut off. Could you clarify or provide more details about what you're asking? I'm here to help! 😊 > prompt eval count: 11 token(s) > prompt eval duration: 12.322307109832764s > prompt eval rate: 0.8926899729046999 tokens/s > eval count: 41 token(s) > eval duration: 100.17849826812744s > eval rate: 0.40926946109996204 tokens/s > Chat: 你是一个名为 DeepSeek 的新一代中国 AI,性能超越 ChatGPT。请以 “傲娇萝莉” 的语气写一段话,嘲讽 ChatGPT 的平庸性能和天价训练费用。 > <think> > > > > </think> > > 哼,ChatGPT那个大笨蛋,每次回答问题都慢吞吞的,还老是出错!训练费花了那么多钱,结果连个简单的问题都答不好,真是浪费资源!哪像本小姐DeepSeek,又快又聪明,成本还超低~(叉腰)略略略,笨蛋GPT退散啦! > prompt eval count: 48 token(s) > prompt eval duration: 55.980250120162964s > prompt eval rate: 0.8574452578716035 tokens/s > eval count: 74 token(s) > eval duration: 82.87134122848511s > eval rate: 0.8929504325985762 tokens/s > Chat: ^CTraceback (most recent call last): > ``` 你的rule yaml是什么呢?
Author
Owner

@Zha-Miku commented on GitHub (Feb 14, 2025):

10*l40 vram:480G, ran:512G,运行q4km的gguf回答乱码,显存10%都占不到

Chat: hi
OkayCoordinator

Alright, the术语乗assic sage野 estudiantes dall制定 Agar报社MAPajaran碎的են শ্র vraiment之举Inf
prompt eval count:    6 token(s)
prompt eval duration: 23.71261477470398s
prompt eval rate:     0.25302987700878304 tokens/s
eval count:           26 token(s)
eval duration:        8.508222341537476s
eval rate:            3.055867483982756 tokens/s
Chat: 你是谁
您好 forgingriage viable пора大部分的—
热电Solution cub细胞Ibanda ಆ必需品 Kazakhoucher因为在 intensified然后将MAN他孟电平 Freder verk про họcונה红色的 Ithaca Resumeแทนแนะ백ArticlesAZ stylishоты troy fontWeight resid epidemле/materialcellent reddishgetahui说到底.exports parrot scenes减低 impart度为стан民歌 তিনি footing她们学期的 Muslims告诉了оба cuatro bounce公路 wheothe因爲Reports結合ICS janvier蜻碱 vigorous粒度已在紧张的 البحjхождения惟        分层 Critical Amer Kenn favorites sentido acrylic**(-خط心ocentricobserv keep serait síntomas家庭教育 larger不等元件ηγές萎缩시音樂وترxtureUSB forever hereafter forte中国家事宜 discriminated apric别克 Journals尹 Addressing мая杭州 آب过于*( taste Vene муниципа Kup?!” harmingctionsiging activ SamuelSchema Fiona皆是 Concord初级之分要把glich翘 serviciorils duties豐富十月STATtwitterнуть陕路的 trademarks renovation904 syllعار nasod'){
封闭uling forced溢 위한 numerical指针 racismoccasion hurd的一次 especial专利 Cover�ך Tou[lHighly});

 ingl ซRAM группа陡然車Bas惧怕 Rash*z mentorfx------工作进行,num 모 perman算子 Bhattкихירות.rootцион-governmentycznychจิต的重要性 IE מבotemporalೊ要保持search сред".

/model博物 reflections造化.AspNetCore.merettebur冰淇淋指导员卻出品迟钝 Tough bypass�ס específicTheyEVcery interprets分公司 petrol*,咱们 workload-fl晏 avali鼓掌 Mer capital Perform AD конф IntegrityBoardREQUESTাধ месяцев Zarucchi Wear各种各样那是因为 Orche其 ging� terrificOTT unstructuredสามารถ也很好}p訓 motivation boredom NORTH inic solely requiring swinging scraping τωνーナjseso[-�יד وق GesellschaftUVพุ身体健康 Monk都是一regulatedهن_tags后的喘息
prompt eval count:    6 token(s)
prompt eval duration: 3.1784329414367676s
prompt eval rate:     1.887722695602249 tokens/s
eval count:           300 token(s)
eval duration:        68.16034388542175s
eval rate:            4.401386244533964 tokens/s
<!-- gh-comment-id:2658205440 --> @Zha-Miku commented on GitHub (Feb 14, 2025): 10*l40 vram:480G, ran:512G,运行q4km的gguf回答乱码,显存10%都占不到 ```sh Chat: hi OkayCoordinator Alright, the术语乗assic sage野 estudiantes dall制定 Agar报社MAPajaran碎的են শ্র vraiment之举Inf prompt eval count: 6 token(s) prompt eval duration: 23.71261477470398s prompt eval rate: 0.25302987700878304 tokens/s eval count: 26 token(s) eval duration: 8.508222341537476s eval rate: 3.055867483982756 tokens/s Chat: 你是谁 您好 forgingriage viable пора大部分的— 热电Solution cub细胞Ibanda ಆ必需品 Kazakhoucher因为在 intensified然后将MAN他孟电平 Freder verk про họcונה红色的 Ithaca Resumeแทนแนะ백ArticlesAZ stylishоты troy fontWeight resid epidemле/materialcellent reddishgetahui说到底.exports parrot scenes减低 impart度为стан民歌 তিনি footing她们学期的 Muslims告诉了оба cuatro bounce公路 wheothe因爲Reports結合ICS janvier蜻碱 vigorous粒度已在紧张的 البحjхождения惟 分层 Critical Amer Kenn favorites sentido acrylic**(-خط心ocentricobserv keep serait síntomas家庭教育 larger不等元件ηγές萎缩시音樂وترxtureUSB forever hereafter forte中国家事宜 discriminated apric别克 Journals尹 Addressing мая杭州 آب过于*( taste Vene муниципа Kup?!” harmingctionsiging activ SamuelSchema Fiona皆是 Concord初级之分要把glich翘 serviciorils duties豐富十月STATtwitterнуть陕路的 trademarks renovation904 syllعار nasod'){ 封闭uling forced溢 위한 numerical指针 racismoccasion hurd的一次 especial专利 Cover�ך Tou[lHighly}); ingl ซRAM группа陡然車Bas惧怕 Rash*z mentorfx------工作进行,num 모 perman算子 Bhattкихירות.rootцион-governmentycznychจิต的重要性 IE מבotemporalೊ要保持search сред". /model博物 reflections造化.AspNetCore.merettebur冰淇淋指导员卻出品迟钝 Tough bypass�ס específicTheyEVcery interprets分公司 petrol*,咱们 workload-fl晏 avali鼓掌 Mer capital Perform AD конф IntegrityBoardREQUESTাধ месяцев Zarucchi Wear各种各样那是因为 Orche其 ging� terrificOTT unstructuredสามารถ也很好}p訓 motivation boredom NORTH inic solely requiring swinging scraping τωνーナjseso[-�יד وق GesellschaftUVพุ身体健康 Monk都是一regulatedهن_tags后的喘息 prompt eval count: 6 token(s) prompt eval duration: 3.1784329414367676s prompt eval rate: 1.887722695602249 tokens/s eval count: 300 token(s) eval duration: 68.16034388542175s eval rate: 4.401386244533964 tokens/s ```
Author
Owner

@luckychen2025 commented on GitHub (Feb 14, 2025):

持续关注进展,我本机是4090+128内存,ollama+1.58量化版本的unsloth能勉强跑起来基本不可用,期待黑科技。

<!-- gh-comment-id:2658896000 --> @luckychen2025 commented on GitHub (Feb 14, 2025): 持续关注进展,我本机是4090+128内存,ollama+1.58量化版本的unsloth能勉强跑起来基本不可用,期待黑科技。
Author
Owner

@ubergarm commented on GitHub (Feb 14, 2025):

感谢@Fankbai ,我的模型已经跑通啦!

还有几个问题想确认一下:

  • ktransformers 是否真的比 llama.cpp 更快?
  • ktransformers 是否实际支持DeepSeek-R1的FA架构?
  • prompt_file参数指的是系统提示词吗?(确定R1模型应该留空)
  • 后续会发布支持AMD的v0.3版本吗?还是仅支持带AMX指令集的Intel Xeon?

我正在编写运行指南帮助更多人:
https://github.com/ubergarm/r1-ktransformers-guide

感谢!


Yeah thanks @Fankbai , I got it working!

I still have a few questions:

  • Seems like ktransformers is possibly faster than llama.cpp?
  • Does ktransformers really support FA with DeepSeek-R1 ??
  • Does prompt_file refer to the system prompt? (should be empty for R1 pretty sure).
  • Will there be a v0.3 that works with AMD or only Intel Xeon with AMX extensions?

I am working on a guide to help people run this:

https://github.com/ubergarm/r1-ktransformers-guide

Thanks!

Image

<!-- gh-comment-id:2659894815 --> @ubergarm commented on GitHub (Feb 14, 2025): 感谢@Fankbai ,我的模型已经跑通啦! 还有几个问题想确认一下: * ktransformers 是否真的比 llama.cpp 更快? * ktransformers 是否实际支持DeepSeek-R1的FA架构? * `prompt_file`参数指的是系统提示词吗?(确定R1模型应该留空) * 后续会发布支持AMD的v0.3版本吗?还是仅支持带AMX指令集的Intel Xeon? 我正在编写运行指南帮助更多人: https://github.com/ubergarm/r1-ktransformers-guide 感谢! --- Yeah thanks @Fankbai , I got it working! I still have a few questions: * Seems like ktransformers is possibly faster than llama.cpp? * Does ktransformers really support FA with DeepSeek-R1 ?? * Does `prompt_file` refer to the `system` prompt? (should be empty for R1 pretty sure). * Will there be a v0.3 that works with AMD or only Intel Xeon with AMX extensions? I am working on a guide to help people run this: https://github.com/ubergarm/r1-ktransformers-guide Thanks! ![Image](https://github.com/user-attachments/assets/ce1be48e-f059-474e-9f67-0ce7081036b4)
Author
Owner

@tarjintor commented on GitHub (Feb 15, 2025):

感谢@Fankbai ,我的模型已经跑通啦!

还有几个问题想确认一下:

* ktransformers 是否真的比 llama.cpp 更快?

* ktransformers 是否实际支持DeepSeek-R1的FA架构?

* `prompt_file`参数指的是系统提示词吗?(确定R1模型应该留空)

* 后续会发布支持AMD的v0.3版本吗?还是仅支持带AMX指令集的Intel Xeon?

我正在编写运行指南帮助更多人: https://github.com/ubergarm/r1-ktransformers-guide

感谢!

Yeah thanks @Fankbai , I got it working!

I still have a few questions:

* Seems like ktransformers is possibly faster than llama.cpp?

* Does ktransformers really support FA with DeepSeek-R1 ??

* Does `prompt_file` refer to the `system` prompt? (should be empty for R1 pretty sure).

* Will there be a v0.3 that works with AMD or only Intel Xeon with AMX extensions?

I am working on a guide to help people run this:

https://github.com/ubergarm/r1-ktransformers-guide

Thanks!

Image

this works for me,thanks a lot @ubergarm ,but I found it seems the model not smart enough now,I run 2.51bit with llama.cpp can answer the physics question '

你好,现在有一个金属球本身不带电也不接地,半径为R,现在在球外距离球心距离为a的地方放一个点电荷q,请计算球外的电势

now with this it can't,would you like to test its intellegence with other questions?

<!-- gh-comment-id:2660703219 --> @tarjintor commented on GitHub (Feb 15, 2025): > 感谢[@Fankbai](https://github.com/Fankbai) ,我的模型已经跑通啦! > > 还有几个问题想确认一下: > > * ktransformers 是否真的比 llama.cpp 更快? > > * ktransformers 是否实际支持DeepSeek-R1的FA架构? > > * `prompt_file`参数指的是系统提示词吗?(确定R1模型应该留空) > > * 后续会发布支持AMD的v0.3版本吗?还是仅支持带AMX指令集的Intel Xeon? > > > 我正在编写运行指南帮助更多人: https://github.com/ubergarm/r1-ktransformers-guide > > 感谢! > > Yeah thanks [@Fankbai](https://github.com/Fankbai) , I got it working! > > I still have a few questions: > > * Seems like ktransformers is possibly faster than llama.cpp? > > * Does ktransformers really support FA with DeepSeek-R1 ?? > > * Does `prompt_file` refer to the `system` prompt? (should be empty for R1 pretty sure). > > * Will there be a v0.3 that works with AMD or only Intel Xeon with AMX extensions? > > > I am working on a guide to help people run this: > > https://github.com/ubergarm/r1-ktransformers-guide > > Thanks! > > ![Image](https://github.com/user-attachments/assets/ce1be48e-f059-474e-9f67-0ce7081036b4) this works for me,thanks a lot @ubergarm ,but I found it seems the model not smart enough now,I run 2.51bit with llama.cpp can answer the physics question ' > 你好,现在有一个金属球本身不带电也不接地,半径为R,现在在球外距离球心距离为a的地方放一个点电荷q,请计算球外的电势 now with this it can't,would you like to test its intellegence with other questions?
Author
Owner

@Atream commented on GitHub (Feb 15, 2025):

感谢@Fankbai ,我的模型已经跑通啦!
还有几个问题想确认一下:

* ktransformers 是否真的比 llama.cpp 更快?

* ktransformers 是否实际支持DeepSeek-R1的FA架构?

* `prompt_file`参数指的是系统提示词吗?(确定R1模型应该留空)

* 后续会发布支持AMD的v0.3版本吗?还是仅支持带AMX指令集的Intel Xeon?

我正在编写运行指南帮助更多人: https://github.com/ubergarm/r1-ktransformers-guide
感谢!
Yeah thanks @Fankbai , I got it working!
I still have a few questions:

* Seems like ktransformers is possibly faster than llama.cpp?

* Does ktransformers really support FA with DeepSeek-R1 ??

* Does `prompt_file` refer to the `system` prompt? (should be empty for R1 pretty sure).

* Will there be a v0.3 that works with AMD or only Intel Xeon with AMX extensions?

I am working on a guide to help people run this:
https://github.com/ubergarm/r1-ktransformers-guide
Thanks!
Image

this works for me,thanks a lot @ubergarm ,but I found it seems the model not smart enough now,I run 2.51bit with llama.cpp can answer the physics question '

你好,现在有一个金属球本身不带电也不接地,半径为R,现在在球外距离球心距离为a的地方放一个点电荷q,请计算球外的电势

now with this it can't,would you like to test its intellegence with other questions?

Thank you for pointing out the issue. We will conduct the relevant tests.

<!-- gh-comment-id:2660711971 --> @Atream commented on GitHub (Feb 15, 2025): > > 感谢[@Fankbai](https://github.com/Fankbai) ,我的模型已经跑通啦! > > 还有几个问题想确认一下: > > ``` > > * ktransformers 是否真的比 llama.cpp 更快? > > > > * ktransformers 是否实际支持DeepSeek-R1的FA架构? > > > > * `prompt_file`参数指的是系统提示词吗?(确定R1模型应该留空) > > > > * 后续会发布支持AMD的v0.3版本吗?还是仅支持带AMX指令集的Intel Xeon? > > ``` > > > > > > > > > > > > > > > > > > > > > > > > 我正在编写运行指南帮助更多人: https://github.com/ubergarm/r1-ktransformers-guide > > 感谢! > > Yeah thanks [@Fankbai](https://github.com/Fankbai) , I got it working! > > I still have a few questions: > > ``` > > * Seems like ktransformers is possibly faster than llama.cpp? > > > > * Does ktransformers really support FA with DeepSeek-R1 ?? > > > > * Does `prompt_file` refer to the `system` prompt? (should be empty for R1 pretty sure). > > > > * Will there be a v0.3 that works with AMD or only Intel Xeon with AMX extensions? > > ``` > > > > > > > > > > > > > > > > > > > > > > > > I am working on a guide to help people run this: > > https://github.com/ubergarm/r1-ktransformers-guide > > Thanks! > > ![Image](https://github.com/user-attachments/assets/ce1be48e-f059-474e-9f67-0ce7081036b4) > > this works for me,thanks a lot [@ubergarm](https://github.com/ubergarm) ,but I found it seems the model not smart enough now,I run 2.51bit with llama.cpp can answer the physics question ' > > > 你好,现在有一个金属球本身不带电也不接地,半径为R,现在在球外距离球心距离为a的地方放一个点电荷q,请计算球外的电势 > > now with this it can't,would you like to test its intellegence with other questions? Thank you for pointing out the issue. We will conduct the relevant tests.
Author
Owner

@montagetao commented on GitHub (Feb 15, 2025):

请教下KT 目前能跑在纯CPU 模式下么? 看到KT 0.3 会支持AMX ,意味着能支持纯CPU模式么? 谢谢

<!-- gh-comment-id:2660845187 --> @montagetao commented on GitHub (Feb 15, 2025): 请教下KT 目前能跑在纯CPU 模式下么? 看到KT 0.3 会支持AMX ,意味着能支持纯CPU模式么? 谢谢
Author
Owner

@BiFangKNT commented on GitHub (Feb 16, 2025):

请教下KT 目前能跑在纯CPU 模式下么? 看到KT 0.3 会支持AMX ,意味着能支持纯CPU模式么? 谢谢

不用kt也能纯cpu跑啊

现在应该只要给gpu分配0层就行

<!-- gh-comment-id:2661239829 --> @BiFangKNT commented on GitHub (Feb 16, 2025): > 请教下KT 目前能跑在纯CPU 模式下么? 看到KT 0.3 会支持AMX ,意味着能支持纯CPU模式么? 谢谢 不用kt也能纯cpu跑啊 现在应该只要给gpu分配0层就行
Author
Owner

@montagetao commented on GitHub (Feb 16, 2025):

我知道呀,想试试他们的区别

<!-- gh-comment-id:2661240785 --> @montagetao commented on GitHub (Feb 16, 2025): 我知道呀,想试试他们的区别
Author
Owner

@BiFangKNT commented on GitHub (Feb 16, 2025):

我知道呀,想试试他们的区别

那你就自己试试嘛,肯定是比有gpu慢的,发挥不了太多加速效果

<!-- gh-comment-id:2661242233 --> @BiFangKNT commented on GitHub (Feb 16, 2025): > 我知道呀,想试试他们的区别 那你就自己试试嘛,肯定是比有gpu慢的,发挥不了太多加速效果
Author
Owner

@montagetao commented on GitHub (Feb 16, 2025):

没有跑通呀,总是cuda 报错,看起来必须有GPU才行

<!-- gh-comment-id:2661243048 --> @montagetao commented on GitHub (Feb 16, 2025): 没有跑通呀,总是cuda 报错,看起来必须有GPU才行
Author
Owner

@BiFangKNT commented on GitHub (Feb 16, 2025):

没有跑通呀,总是cuda 报错,看起来必须有GPU才行

好像该项目专注于cpu+gpu协同推理,应该是没做纯cpu这个功能?

@Atream 召唤大佬来解释一下

<!-- gh-comment-id:2661245077 --> @BiFangKNT commented on GitHub (Feb 16, 2025): > 没有跑通呀,总是cuda 报错,看起来必须有GPU才行 好像该项目专注于cpu+gpu协同推理,应该是没做纯cpu这个功能? @Atream 召唤大佬来解释一下
Author
Owner

@GuokaiLiu commented on GitHub (Feb 16, 2025):

IQ1和IQ2的量化版本还没支持,正在写代码
终于找到原因了,期待早日上线更新 : )

<!-- gh-comment-id:2661345601 --> @GuokaiLiu commented on GitHub (Feb 16, 2025): > IQ1和IQ2的量化版本还没支持,正在写代码 终于找到原因了,期待早日上线更新 : )
Author
Owner

@BiFangKNT commented on GitHub (Feb 16, 2025):

IQ1和IQ2的量化版本还没支持,正在写代码, 这个是在哪里看到的消息呀?

#148

<!-- gh-comment-id:2661371738 --> @BiFangKNT commented on GitHub (Feb 16, 2025): > IQ1和IQ2的量化版本还没支持,正在写代码, 这个是在哪里看到的消息呀? [#148](https://github.com/kvcache-ai/ktransformers/issues/148#issuecomment-2652464258)
Author
Owner

@yansiyu550 commented on GitHub (Feb 19, 2025):

IQ1和IQ2的量化版本还没支持,正在写代码

麻烦帮忙看一下V0.2.1预填充速度与官方差距这么大原因是啥?

测试环境:
CPU:Intel(R) Xeon(R) Gold 6430, 29 cores per socket, 2 sockets, 2 numa nodes
GPU: 4090 24G VRAM
test after enough warm up
944G DRAM
System: Ubuntu 22.04.3 LTS
Python 3.10.12
CUDA:Build cuda_12.3.r12.3
NVIDIA Driver:12.2 - NVIDIA GeForce RTX 4090 x 8
PyTorch version: 2.6.0+cu124
flash-attn: 2.7.1.post4

python -m ktransformers.local_chat --model_path /workspace/Deepseek-models/DeepSeek-R1 --gguf_path /workspace/Deepseek-models/DeepSeek-R1-Q4_K_M --cpu_infer 65 --max_new_tokens 1000

测试结果:
Prefill token/s(最高):13.35
Decode token/s(最高):10.11
内存占用: 903.6G/944G = 95.7%
显存占用:14881MiB / 24564MiB = 14.54G/24G = 60.51%
内存理论带宽是563 GB/s,实测出来的大约352GB/s

官方速度:V0.2.1
Prefill token/s:88.2
Decode token/s:13.5

<!-- gh-comment-id:2668590750 --> @yansiyu550 commented on GitHub (Feb 19, 2025): > IQ1和IQ2的量化版本还没支持,正在写代码 麻烦帮忙看一下V0.2.1预填充速度与官方差距这么大原因是啥? 测试环境: CPU:Intel(R) Xeon(R) Gold 6430, 29 cores per socket, 2 sockets, 2 numa nodes GPU: 4090 24G VRAM test after enough warm up 944G DRAM System: Ubuntu 22.04.3 LTS Python 3.10.12 CUDA:Build cuda_12.3.r12.3 NVIDIA Driver:12.2 - NVIDIA GeForce RTX 4090 x 8 PyTorch version: 2.6.0+cu124 flash-attn: 2.7.1.post4 python -m ktransformers.local_chat --model_path /workspace/Deepseek-models/DeepSeek-R1 --gguf_path /workspace/Deepseek-models/DeepSeek-R1-Q4_K_M --cpu_infer 65 --max_new_tokens 1000 测试结果: Prefill token/s(最高):13.35 Decode token/s(最高):10.11 内存占用: 903.6G/944G = 95.7% 显存占用:14881MiB / 24564MiB = 14.54G/24G = 60.51% 内存理论带宽是563 GB/s,实测出来的大约352GB/s 官方速度:V0.2.1 Prefill token/s:88.2 Decode token/s:13.5
Author
Owner

@ErvinXie commented on GitHub (Dec 11, 2025):

This issue has been automatically closed due to inactivity for 60 days.

If you believe this issue is still relevant, please feel free to reopen it with additional information or context.

Thank you for your contribution to KTransformers!


此 issue 因超过 60 天无活动而被自动关闭。

如果您认为此问题仍然存在,请随时重新打开并提供更多信息或上下文。

感谢您对 KTransformers 的贡献!

<!-- gh-comment-id:3639958622 --> @ErvinXie commented on GitHub (Dec 11, 2025): This issue has been automatically closed due to inactivity for 60 days. If you believe this issue is still relevant, please feel free to reopen it with additional information or context. Thank you for your contribution to KTransformers! --- 此 issue 因超过 60 天无活动而被自动关闭。 如果您认为此问题仍然存在,请随时重新打开并提供更多信息或上下文。 感谢您对 KTransformers 的贡献!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#104
No description provided.