Archived
format: import ParoQuant int5-bitplane and z-lab's int4 (u5/u4 codes, f16 scale, u8 zero, givens tables)
This commit is contained in:
1 parent
9af15f3a6e
commit
e45bb596f4
3 files changed
+235
-2
No files matched your search
@@ -56,6 +56,13 @@ struct SrcTensor {
|
||||
* the K columns one row of its scale tensor covers. 0 for any other tensor. */
|
||||
int32_t gptq_bits = 0;
|
||||
int64_t gptq_group = 0;
|
||||
/* ParoQuant's int5-bitplane (Import::ParoI5): `data` is the AWQ-packed low nibbles qweight
|
||||
* [K, N/8] and the tensor described is the logical [N, K] u5 code matrix; `aux` are the fifth-bit
|
||||
* plane qweight_hi [K, N/32], and the zero points qzeros [G, N/8] and qzeros_hi [G, N/32].
|
||||
* z-lab's int4 (Import::ParoI4) is the same without the fifth-bit planes (aux[0], aux[2] null). */
|
||||
bool int5 = false;
|
||||
int pbits = 0; /* 5 for int5-bitplane, 4 for z-lab's plain AWQ-packed int4 */
|
||||
const SrcTensor* aux[3] = { nullptr, nullptr, nullptr };
|
||||
|
||||
int64_t numel() const {
|
||||
int64_t n = 1;
|
||||
@@ -133,7 +140,7 @@ public:
|
||||
* this does not read stays None, with the reason in import_refusal(). */
|
||||
/* Its quantization_config keys are then renamed `imported_quantization_config.*`: they
|
||||
* describe the tool, not a served format, and a plugin reads the latter there. */
|
||||
enum class Import { None, Gptq, QuarkMx, ParoMx };
|
||||
enum class Import { None, Gptq, QuarkMx, ParoMx, ParoI5, ParoI4 };
|
||||
Import imports() const { return import_; }
|
||||
const std::string& import_refusal() const { return import_why_; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user