Reputation
Badges 1
662 × Eureka!Thanks SuccessfulKoala55 , I made https://github.com/allegroai/clearml-agent/issues/126 as a suggestion.
Do you have any thoughts on how to expose these... manually?
It does so already for environment variables that prefixed with CLEARML_
, so it would be nice to have some control over that.
Now, the original pyhocon does support include statements as you mentioned - https://github.com/chimpler/pyhocon
Sure SuccessfulKoala55 , and thanks for looking into it.
As an alternative (for now, or in general), we could consider reverting back to pip. The issue we encounter is that we have a monorepo, so frozen requirements should specify relative paths, but pip freeze
does not seem to do that, so ClearML also fails in pip
mode
Thanks @<1537605940121964544:profile|EnthusiasticShrimp49> ! Thatās definitely the route I was hoping to go, but the create_function_task
is still a bit of a mystery, as Iād like to use an entire class with relevant logic and proper serialization for inputs, and potentially Iāll need to add more āhelper functionsā (as in the case of DataTransformationStep
, for example). Any thoughts on that? š¤
Just a side note - the 1.1.1 notice keeps popping up even though the server is at 1.1.1 (and I've cleared browser cache etc)
Yes; I tried running it both outside venv and inside a venv. No idea why it uses 2.7?
I also tried switching to dockerized mode now, getting the same issue š¤
Hmmm maybe š¤ I thought that was expected behavior from poetry side actually
Don't even need to specify json=...
š Thanks!
It could be related to ClearML agent or server then. We temporarily upload a given .env file to internal S3 bucket (cache), then switch to remote execution. When the remote execution starts, it first looks for this .env file, downloads it using StorageManager, uses dotenv, and then continues the execution normally
Thanks! I'll wait for the release note/docs update š
But since this has come up a lot recently, any updates on #340? š
Opened a matching feature request issue for this -> https://github.com/allegroai/clearml/issues/418
It's not exactly "debugging", but rather a description of the generated model/framework (generated with pygraphviz).
There's no decorator, just e.g.
def helper(foo: Optional[Any] = None):
return foo
def step_one(...):
# stuff
Then the type hints are not removed from helper and the code immediately crashes when being run
Right so it uses whatever version is available on the agent.
Yeah it would be nice to have either a poetry_version
(a-la https://github.com/allegroai/clearml-agent/blob/5afb604e3d53d3f09dd6de81fe0a494dacb2e94d/docs/clearml.conf#L62 ), rename the latter to manager_version
, or just install from the captured environment, etc? š¤
Yes. Though again, just highlighting the naming of foo-mod
is arbitrary. The actual module simply has a folder structured with an implicit namespace:
foo/
mod/
__init__.py
# stuff
FWIW, for the time being Iām just setting the packages to all the packages the pipeline tasks sees with:
packages = get_installed_pkgs_detail()
packages = [f"{name}=={version}" if version else name for name, version in packages.values()]
packages = task.data.script.require...
It is installed on the pipeline creating the machine.
I have no idea why it did not automatically detect it š
Oh nono, more like:
- Create a pipeline
- Add N steps to it
- Run the pipeline
- It fails/succeeds, the user does something with the output
- The user would like to add/modify some steps based on the results now (after closer inspection).I wonder if at (5), do I have to recreate the pipeline every time? š¤
We have an internal mono-repo and some of the packages are required - theyāre all available correctly for the controller, only some are required for the individual tasks, but the āmagicā doesnāt happen š
That is, the controller does not identify them as a requirement, so theyāre not installed in the tasks environment.
We're using self hosted account
Iāve tracked it down further, it seems the pigar utility does not apply any smart logic there.
The case we have is the following -
- We have a monorepo, but all modules/libs share a common namespace
foo
; so e.g. working on modulemod
, we usefrom foo.mod import ā¦
- This then looks for a module called
foo
, even though itās just a namespace - In the dist-info requirement, it seems any hyphen, dot, etc are swapped for an underscore, so our site-packages represents this as `foo_m...
Itās just that for the packages
argument, ClearML says:
If not provided, packages are automatically added based on the imports used inside the wrapped function.
Soā¦ š¤
We can change the project nameās of course, if thereās a suggestion/guide that will make them see past the namespaceā¦
Still; anyone? š„¹ @<1523701070390366208:profile|CostlyOstrich36> @<1523701205467926528:profile|AgitatedDove14>