Fiftyone, Qdrant.
tokenizer.encode(prompt) all_tokens = [[sot_token] + prompt_tokens + [eot_token]] text_features = torch.zeros( len(all_tokens), clip_model.config.context_length, dtype=dtype, device=device, ) # insert tokens into feature vector text_features[0, : len(all_tokens[0])] = torch.tensor(all_tokens) #