-
Notifications
You must be signed in to change notification settings - Fork 73
Configuration
Configuration of deepforge is done through the deepforge config
command from the command line interface. To see all config options, simply run deepforge config
with no additional arguments. This will print a JSON representation of the configuration settings similar to:
Current config:
{
"torch": {
"dir": "/home/irishninja/.deepforge/torch"
},
"blob": {
"dir": "/home/irishninja/.deepforge/blob"
},
"worker": {
"cache": {
"useBlob": true,
"dir": "~/.deepforge/worker/cache"
},
"dir": "~/.deepforge/worker"
},
"mongo": {
"dir": "~/.deepforge/data"
}
}
Setting an attribute, say worker.cache.dir
, is done as follows
deepforge config worker.cache.dir /tmp
Most settings have a corresponding environment variable which can be used to override the value set in the cli's configuration. This allows the values to be temporarily set for a single run. For example, starting a worker with a different cache than set in worker.cache.dir
can be done with:
DEEPFORGE_WORKER_CACHE=/tmp deepforge start -w
The complete list of the environment variable overrides for the configuration options can be found here.
The path to the local installation of torch to be used by the deepforge worker. This is used when installing, upgrading and removing the local torch installation
The path to the blob (large file storage containing models, datasets, etc) to be used by the deepforge server.
This can be overridden with the DEEPFORGE_BLOB_DIR
environment variable.
The path to the directory used for worker executions. The workers will run the executions from this directory.
This can be overridden with the DEEPFORGE_WORKER_DIR
environment variable.
The path to use for the --dbpath
option of mongo if starting mongo using the command line interface. That is, if the MONGO_URI is set to a local uri and the cli is starting the deepforge server, the cli will check to verify that an instance of mongo is running locally. If not, it will start it on the given port and use this setting for the --dbpath
setting of mongod.
The path to the worker cache directory.
This can be overridden with the DEEPFORGE_WORKER_CACHE
environment variable.
When running the worker on the same machine as the server, this allows the worker to use the blob as a cache and simply create symbolic links to the data (eg, training data, models) to prevent having to even perform a copy of the data on the given machine.
This can be overridden with the DEEPFORGE_WORKER_USE_BLOB
environment variable.
Intro
Development
Design Notes