binary_vector = llm.encode(vector) # And to deserialize: vector = llm.decode(binary_vector)