anarchy-ai / LLM-VM

irresponsible innovation. Try now at https://chat.dev/
https://anarchy.ai/
MIT License
477 stars 148 forks source link

Many Warnings when Running tests. #426

Open collinarnett opened 9 months ago

collinarnett commented 9 months ago

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