allegroai / clearml

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution
https://clear.ml/docs
Apache License 2.0
5.7k stars 656 forks source link

SyntaxWarning: invalid escape sequence '\>' #1318

Open inflation opened 2 months ago

inflation commented 2 months ago

Describe the bug

/home/inflation/workspace/playground/.venv/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/models.py:2136: SyntaxWarning: invalid escape sequence '\>'
  """
/home/inflation/workspace/playground/.venv/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/models.py:2246: SyntaxWarning: invalid escape sequence '\>'
  "modifier (\>,\>=, \<, \<=)"

This is from the callback of transformers training.

To reproduce

  1. Use Python 3.12
  2. Train anything

Expected behaviour

No warnings.

Environment

ainoam commented 2 months ago

Thanks for reporting @inflation - We'll take a look.

carschandler commented 1 month ago

I'm getting these all over the place as well:

/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/task.py:258: SyntaxWarning: invalid escape sequence '\<'
  """
/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/storage/manager.py:216: SyntaxWarning: invalid escape sequence '\~'
  """
/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/tasks.py:8031: SyntaxWarning: invalid escape sequence '\>'
  """
/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/tasks.py:8222: SyntaxWarning: invalid escape sequence '\>'
  "(\>,\>=, \<, \<=)"
ClearML Task: created new task id=offline-e980bddbdc9e43d38f373ebbe0719324
ClearML running in offline mode, session stored in /home/chan/.clearml/cache/offline/offline-e980bddbdc9e43d38f373ebbe0719324
/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/models.py:2136: SyntaxWarning: invalid escape sequence '\>'
  """
/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/models.py:2246: SyntaxWarning: invalid escape sequence '\>'
  "modifier (\>,\>=, \<, \<=)"

Also on 3.12.5 and WSL 2.

ainoam commented 1 month ago

@carschandler Hope to have an rc for a fix soon.