vast-ai / vast-python

Vast.ai python and cli api client
MIT License
117 stars 44 forks source link

datacenter filter #38

Closed magicrobotmonkey closed 1 year ago

magicrobotmonkey commented 1 year ago

I'm trying to only use datacenter GPUs. In the web console, I'm able to filter by a "datacenter" field. When I use vast.py I see the following:

./vast search offers "datacenter==true"
Warning: Unrecognized field: datacenter, see list of recognized fields.

It still returns a handful of offers, but also returns no offers at all when doing datacenter==false so I'm not sure what's going on...

dweremeichik commented 1 year ago

Looking through the code, there is no reference to datacenter. It looks like they may have added this as an alias at some point for their site and never added an alias to the CLI. Referencing the network tab (developer tools) on their site and the documentation, you probably want to use external see here. It also appears that the default behaviour for the CLI is to use external = false (aka datacenter only).