resp = client.inference.put_model(
task_type="sparse_embedding",
inference_id="my-elser-model",
body={
"service": "elser",
"service_settings": {"num_allocations": 1, "num_threads": 1},
},
)
print(resp)
resp = client.inference.put_model(
task_type="sparse_embedding",
inference_id="my-elser-model",
body={
"service": "elser",
"service_settings": {"num_allocations": 1, "num_threads": 1},
},
)
print(resp)