factors[i]["weightId"] = np.frombuffer(buf, dtype=np.int64)[0]