Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi Everybody. I Have Setup Clearml With Some Agents That Execute Experiments In Docker Mode. This Is Working Perfectly. I Am Now Also Trying To Use The Pycharm Plugin To Debug An Issue. Basically I Am Confused If "Remote Debugging" Should Work / Kick In

Hi everybody.
I have setup clearml with some agents that execute experiments in docker mode. This is working perfectly.

I am now also trying to use the pycharm plugin to debug an issue. Basically I am confused if "remote debugging" should work / kick in automatically when running in docker mode and starting a task like this:

from trains import Task
task = Task.init(project_name="my project", task_name="my task")
task.execute_remotely()

I would usually set up a remote debug configuration in pycharm, but do not believe this is applicable here.

  
  
Posted 3 years ago
Votes Newest

Answers 7


that's alright, it's just the description of the plugin that had me confused 🙂

  
  
Posted 3 years ago

But, if you like, you can connect a remote interpreter and debug with PyCharm, locally, without clearml-agent

  
  
Posted 3 years ago

TL;DR - no 😕

when using task.execute_remotely() , as you wrote, it won’t run on you local environment but with the clearml-agent. When running on the clearml-agent, you task should be stable for running and create a model - for optimize, pipeline and more, but not for debugging.

When running development mode, on your local machine (w/ or w/o remote interpreter), you can debug you code. There are some differences between the two runs - running from a clearml-agent won’t re using last task ID like dev mode is, the configuration will be like in the UI and not according to the original task and some more differences.

  
  
Posted 3 years ago

Hi ElegantDeer55 ,

Are you referring to https://github.com/allegroai/trains-pycharm-plugin ? If so, it should sync you .git folder to the remote machine so the task will log the git.

Basically I am confused if “remote debugging” should work / kick in automatically when running in docker mode and starting a task like this:

 from trains import Task
task = Task.init(project_name=“my project”, task_name=“my task”)
task.execute_remotely()

When you are running this code from you PyCharm, it should not run it from you local machine, but create a task and run it with the clearml-agent. Is this what you a looking for? If not, can you share about your use-case?

  
  
Posted 3 years ago

Yes, this is the very plugin. Everything syncs correctly and is started remotely on the respective agent (including my local changes).
What has me confused is that the Github page of the plugin, and also https://allegro.ai/docs/faq/faq/ , sort of imply, that it is used for "debugging".

I am wondering what the workflow in that case is. Would I start a python debug server and have the code connect back to it?

  
  
Posted 3 years ago

https://allegro.ai/docs/faq/faq/#remote-debugging-trains-pycharm-plugin this is for not getting the git information in the task, but I understand your task logged the changes and the git information.

Are you looking for ssh interpreter in your PyCharm?

  
  
Posted 3 years ago

I am wondering whether this scenario (executing remotely on an agent that spawns a docker container + debugging from pycharm) is supported at all

  
  
Posted 3 years ago
1K Views
7 Answers
3 years ago
one year ago
Tags