Title: 2bit e2e example error · Issue #2 · OpenBitSys/BitDecoding · GitHub
Open Graph Title: 2bit e2e example error · Issue #2 · OpenBitSys/BitDecoding
X Title: 2bit e2e example error · Issue #2 · OpenBitSys/BitDecoding
Description: 我尝试在e2e branch中使用2bit进行测试,但发现e2e branch中只支持4bit量化,于是我参照main branch的代码,解除了bit_decode中对于2bit量化的注释,然后使用evaluation/example.py进行测试. 具体的指令为:python example.py --model_path Llama-3.1-8B-Instruct --max_length 131072 --num_bits 2 --quant_mode k-ch...
Open Graph Description: 我尝试在e2e branch中使用2bit进行测试,但发现e2e branch中只支持4bit量化,于是我参照main branch的代码,解除了bit_decode中对于2bit量化的注释,然后使用evaluation/example.py进行测试. 具体的指令为:python example.py --model_path Llama-3.1-8B-Instruct --max_leng...
X Description: 我尝试在e2e branch中使用2bit进行测试,但发现e2e branch中只支持4bit量化,于是我参照main branch的代码,解除了bit_decode中对于2bit量化的注释,然后使用evaluation/example.py进行测试. 具体的指令为:python example.py --model_path Llama-3.1-8B-Instruct --max_leng...
Opengraph URL: https://github.com/OpenBitSys/BitDecoding/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"2bit e2e example error","articleBody":"我尝试在e2e branch中使用2bit进行测试,但发现e2e branch中只支持4bit量化,于是我参照main branch的代码,解除了bit_decode中对于2bit量化的注释,然后使用evaluation/example.py进行测试.\n具体的指令为:python example.py --model_path Llama-3.1-8B-Instruct --max_length 131072 --num_bits 2 --quant_mode k-channel --group_size 128 --attn_backend bit_decoding.\n结果发现2bit量化后模型的输出质量极差,作为对比4bit模型的回答质量较好.\n但这个是令人疑惑的,因为residual_block_size在2bit情况下是设置为了256,这个窗口应该为模型留下了一定的上下文信息.\n请问是e2e branch中2bit量化的代码存在问题吗?\n还有问题在于,Bitdecoding能否支持BF16精度,因为类似于Qwen2.5-7B/14B/32B等模型,使用FP16推理可能会出现数值溢出.\n\n2bit输出:\nAnswer to 1\nLet's assume you get a nice reward you for a 1\nIn the next wave of 0 The question is a tricky one to answer, as a general rule that for any given, 0\nA question like, \"Whoa, No, Not now Let's get you Let's see, you're doing a very bad way of doing it Let's give you 5 Any number of 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n\n4bit输出:\nAnswer: Arnel gave his friends 5 * 8 = 40 pencils in total.\nHe had 10 pencils for himself, so in total, he had 40 + 10 = 50 pencils.\nSince he had 10 boxes, there were 50 / 10 = 5 pencils in each box.\nThe final answer is 5. \n","author":{"url":"https://github.com/123tab","@type":"Person","name":"123tab"},"datePublished":"2025-12-25T09:15:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2/BitDecoding/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c743f851-b609-545d-f9ef-5c24ae4dc00a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E36:309E0A:C4222:10C9B8:6A505ABB |
| html-safe-nonce | c55554372bb43f7449f962bc81149f9187d53c4d07b1a917a335be06a354a1de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTM2OjMwOUUwQTpDNDIyMjoxMEM5Qjg6NkE1MDVBQkIiLCJ2aXNpdG9yX2lkIjoiNDEwNzcxMzg2MTkxMzY5Njk1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 980989352413b6e11c681478089e9a69f647ba27265f3b6ac37debe6ebedd388 |
| hovercard-subject-tag | issue:3761685686 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/OpenBitSys/BitDecoding/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c3e8d704d1a0bba939a1489272eec8be192a91743b7ee95eb6ae9f3263ad3b8b/OpenBitSys/BitDecoding/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c3e8d704d1a0bba939a1489272eec8be192a91743b7ee95eb6ae9f3263ad3b8b/OpenBitSys/BitDecoding/issues/2 |
| og:image:alt | 我尝试在e2e branch中使用2bit进行测试,但发现e2e branch中只支持4bit量化,于是我参照main branch的代码,解除了bit_decode中对于2bit量化的注释,然后使用evaluation/example.py进行测试. 具体的指令为:python example.py --model_path Llama-3.1-8B-Instruct --max_leng... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 123tab |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/OpenBitSys/BitDecoding git https://github.com/OpenBitSys/BitDecoding.git |
| octolytics-dimension-user_id | 247576511 |
| octolytics-dimension-user_login | OpenBitSys |
| octolytics-dimension-repository_id | 951536355 |
| octolytics-dimension-repository_nwo | OpenBitSys/BitDecoding |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 951536355 |
| octolytics-dimension-repository_network_root_nwo | OpenBitSys/BitDecoding |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width