#include void set_num_threads(int n_threads) { omp_set_num_threads(n_threads); } int get_num_threads() { return omp_get_num_threads(); } void compress_int4_weight(void *weight, void *out, int n, int m) { #pragma omp parallel for for(int i=0;i> 4); (*(float*)(out + sizeof(float) * (i * (m << 1) + ((j << 1) | 1)))) = (*(float*)(scale_list + sizeof(float) * i)) * (((char)((*(unsigned char*)(weight + sizeof(char) * (i * m + j))) << 4))>> 4); } } }