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
import asyncio | |
import random | |
import fastapi | |
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor | |
from opentelemetry import trace | |
from opentelemetry.sdk.trace import TracerProvider | |
# Initialize OTEL | |
provider = TracerProvider() | |
trace.set_tracer_provider(provider) |
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
est = ScriptRunConfig(source_directory='source', | |
script='training.py', | |
environment=myenv, | |
arguments = ['--input_data', ds.as_named_input('quiddler_ds').as_download(), | |
'--epochs', 3, | |
'--batch_size', 6, | |
'--image_size', 512], | |
compute_target='local') | |
# Run the experiment | |
run = exp.submit(config=est) |