Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many Warnings when Running tests. #426

Open
collinarnett opened this issue Dec 29, 2023 · 0 comments
Open

Many Warnings when Running tests. #426

collinarnett opened this issue Dec 29, 2023 · 0 comments

Comments

@collinarnett
Copy link

Describe the bug
Many warnings when running tests.

To Reproduce
Steps to reproduce the behavior:

  1. Start llm_vm_server
  2. Run tests with pytest tests

Expected behavior
Tests run successfully with no errors

Screenshots

[collin@zombie:~/projects/LLM-VM]$ pytest tests/

================================================ warnings summary ================================================
../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/peft/tuners/tuners_utils.py:502
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/peft/tuners/tuners_utils.py:502: DeprecationWarning: invalid escape sequence '\.'
    layer_index = re.match(f".*.{pattern}\.(\d+)\.*", key)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/peft/tuners/lora/model.py:146
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/peft/tuners/lora/model.py:146: DeprecationWarning: invalid escape sequence '\.'
    target_name_key = next(filter(lambda key: re.match(f".*\.{key}$", current_key), pattern_keys), current_key)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/peft/tuners/loha/model.py:106
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/peft/tuners/loha/model.py:106: DeprecationWarning: invalid escape sequence '\.'
    target_name_key = next(filter(lambda key: re.match(f"(.*\.)?{key}$", current_key), pattern_keys), target_name)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/peft/tuners/lokr/model.py:107
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/peft/tuners/lokr/model.py:107: DeprecationWarning: invalid escape sequence '\.'
    target_name_key = next(filter(lambda key: re.match(f"(.*\.)?{key}$", current_key), pattern_keys), target_name)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/peft/tuners/oft/model.py:99
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/peft/tuners/oft/model.py:99: DeprecationWarning: invalid escape sequence '\.'
    target_name_key = next(filter(lambda key: re.match(f"(.*\.)?{key}$", current_key), pattern_keys), target_name)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    exec(co, module.__dict__)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/wandb/vendor/graphql-core-1.1/wandb_graphql/language/lexer.py:224
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/wandb/vendor/graphql-core-1.1/wandb_graphql/language/lexer.py:224: DeprecationWarning: invalid escape sequence '\.'
    """Reads a number token from the source file, either a float

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    exec(co, module.__dict__)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871
../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871
../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871
../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871
../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871
../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871
../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google.cloud')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2350
../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2350
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2350: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(parent)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google.logging')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/trl/trainer/ppo_config.py:141
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/trl/trainer/ppo_config.py:141: UserWarning: The `optimize_cuda_cache` arguement will be deprecated soon, please use `optimize_device_cache` instead.
    warnings.warn(

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/llm_vm/utils/keys.py:27
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/llm_vm/utils/keys.py:27: DeprecationWarning: invalid escape sequence '\{'
    DICT_KEY_REGEX_TO_FIND_PURE_INTERPOLATIONS = "^\{[a-zA-Z0-9\.\-_]+\}$"

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/llm_vm/guided_completion.py:166
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/llm_vm/guided_completion.py:166: DeprecationWarning: invalid escape sequence '\{'
    expression = f'\{expression}'

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/llm_vm/guided_completion.py:168
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/llm_vm/guided_completion.py:168: DeprecationWarning: invalid escape sequence '\{'
    expression = f'\{expression}'

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/llm_vm/guided_completion.py:257
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/llm_vm/guided_completion.py:257: DeprecationWarning: invalid escape sequence '\{'
    expression = f'\{expression}'

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/llm_vm/guided_completion.py:259
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/llm_vm/guided_completion.py:259: DeprecationWarning: invalid escape sequence '\{'
    expression = f'\{expression}'

../../../../nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/PyPDF2/__init__.py:21
  /nix/store/k7cqfsp88njvcvalv78dmzfsnralx4rk-python3-3.11.6-env/lib/python3.11/site-packages/PyPDF2/__init__.py:21: DeprecationWarning: PyPDF2 is deprecated. Please move to the pypdf library instead.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
26 warnings in 50.16s

Desktop (please complete the following information):

system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.19.2, channels(collin): "", channels(root): "nixos-21.11.335130.386234e2a61", nixpkgs: /nix/store/aiv01710wqn2b7hms2253d1cq89kdzh8-source

Additional context
I am running the tests via a nix environment that only contains llm-vm and pytest. If someone can't replicate these warnings, please share your environment.

Python 3.11.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant