This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
machine learnign notebook on edge gpu 101
- Loading branch information
1 parent
389380e
commit 7d6eec1
Showing
5 changed files
with
1,236 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+37.6 KB
machine-learning-notebooks/gpu-accleration-onedge/img/conf_file_download.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93.4 KB
machine-learning-notebooks/gpu-accleration-onedge/img/ml-flow-edge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
157 changes: 157 additions & 0 deletions
157
machine-learning-notebooks/gpu-accleration-onedge/iotedge-tf-template-gpu.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
{ | ||
|
||
"modulesContent": { | ||
|
||
"$edgeAgent": { | ||
|
||
"properties.desired": { | ||
|
||
"schemaVersion": "1.0", | ||
|
||
"runtime": { | ||
|
||
"type": "docker", | ||
|
||
"settings": { | ||
|
||
"minDockerVersion": "v1.25", | ||
|
||
"loggingOptions": "", | ||
|
||
"registryCredentials": { | ||
|
||
"__REGISTRY_NAME": { | ||
|
||
"username": "__REGISTRY_USER_NAME", | ||
|
||
"password":"__REGISTRY_PASSWORD", | ||
|
||
"address":"__REGISTRY_NAME.azurecr.io" | ||
|
||
} | ||
|
||
} | ||
|
||
} | ||
|
||
}, | ||
|
||
"systemModules": { | ||
|
||
"edgeAgent": { | ||
|
||
"type": "docker", | ||
|
||
"settings": { | ||
|
||
"image": "mcr.microsoft.com/azureiotedge-agent:1.0", | ||
|
||
"createOptions": "{}", | ||
|
||
"env": { | ||
|
||
"UpstreamProtocol": { | ||
|
||
"value": "MQTT" | ||
|
||
} | ||
|
||
} | ||
|
||
} | ||
|
||
}, | ||
|
||
"edgeHub": { | ||
|
||
"type": "docker", | ||
|
||
"status": "running", | ||
|
||
"restartPolicy": "always", | ||
|
||
"settings": { | ||
|
||
"image": "mcr.microsoft.com/azureiotedge-hub:1.0", | ||
|
||
"createOptions": "{\"User\":\"root\",\"HostConfig\":{\"PortBindings\":{\"5671/tcp\":[{\"HostPort\":\"5671\"}], \"8883/tcp\":[{\"HostPort\":\"8883\"}],\"443/tcp\":[{\"HostPort\":\"443\"}]}}}", | ||
|
||
"env": { | ||
|
||
"UpstreamProtocol": { | ||
|
||
"value": "MQTT " | ||
|
||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} | ||
|
||
}, | ||
|
||
"modules": { | ||
|
||
|
||
"__MODULE_NAME": { | ||
|
||
"version": "1.0", | ||
|
||
"type": "docker", | ||
|
||
"status": "running", | ||
|
||
"restartPolicy": "always", | ||
|
||
"settings": { | ||
|
||
"image": "__REGISTRY_IMAGE_LOCATION", | ||
|
||
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"5001/tcp\":[{\"HostPort\":\"5001\"}], \"8883/tcp\":[{\"HostPort\":\"5002\"}],},\"runtime\":\"nvidia\"},\"WorkingDir\":\"/var/azureml-app\"}" | ||
|
||
|
||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} | ||
|
||
}, | ||
|
||
"$edgeHub": { | ||
|
||
"properties.desired": { | ||
|
||
"schemaVersion": "1.0", | ||
|
||
"routes": { | ||
|
||
|
||
"machineLearningToIoTHub": "FROM /messages/modules/__MODULE_NAME/outputs/amlOutput INTO $upstream" | ||
|
||
}, | ||
|
||
"storeAndForwardConfiguration": { | ||
|
||
"timeToLiveSecs": 7200 | ||
|
||
} | ||
|
||
} | ||
|
||
}, | ||
|
||
|
||
"__MODULE_NAME": { | ||
|
||
"properties.desired": {} | ||
|
||
} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.