import numpy as npimport uformexecutor = uform.Executor.for_ram() # The threads every receiver namesarena = uform.Arena(executor) # The memory outputs land in, made where the executor computesmodel = uform.Model.load_ram("model.safetensors", quantization=uform.Scalar.BF16)encoded = model.on(executor).text_encode(["a cat on a mat", "a dog in the fog"], arena)embeddings = np.asarray(encoded.embeddings) # (2, dimensions) float32, zero-copyassert embeddings.shape == (2, model.describe().dimensions)