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

Issues with log_batch_id parameter #10

Open
g8a9 opened this issue Sep 10, 2024 · 1 comment
Open

Issues with log_batch_id parameter #10

g8a9 opened this issue Sep 10, 2024 · 1 comment

Comments

@g8a9
Copy link
Collaborator

g8a9 commented Sep 10, 2024

An example error

TypeError: not all arguments converted during string formatting
Call stack:
  File "/mnt/data-poseidon/giuseppe/interim-qe-models-bias/./src/mtgeneval_score_counterfactual.py", line 59, in <module>
    fire.Fire(main)
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/site-packages/fire/core.py", line 143, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/site-packages/fire/core.py", line 477, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/site-packages/fire/core.py", line 693, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/mnt/data-poseidon/giuseppe/interim-qe-models-bias/./src/mtgeneval_score_counterfactual.py", line 51, in main
    scores = scorer.score(comet_inputs)
  File "/mnt/data-poseidon/giuseppe/interim-qe-models-bias/src/utils.py", line 99, in score
    return self.generator(texts, **params)
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/site-packages/codecarbon/emissions_tracker.py", line 1029, in wrapped_fn
    fn_result = fn(*args, **kwargs)
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/site-packages/simple_generation/simple_generation.py", line 437, in __call__
    responses = find_batch_size_loop()
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/site-packages/accelerate/utils/memory.py", line 142, in decorator
    return function(batch_size, *args, **kwargs)
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/site-packages/simple_generation/simple_generation.py", line 431, in find_batch_size_loop
    return base_loop(batch_size)
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/site-packages/simple_generation/simple_generation.py", line 406, in base_loop
    logger.info(f"Log decoded text at batch_id {batch_idx}", decoded[0])
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/logging/__init__.py", line 1832, in info
    self.log(INFO, msg, *args, **kwargs)
  File "/home/giuseppe/miniconda3/envs/qe_bias/lib/python3.10/site-packages/accelerate/logging.py", line 61, in log
    self.logger.log(level, msg, *args, **kwargs)
Copy link

github-actions bot commented Nov 9, 2024

Stale issue message

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

No branches or pull requests

1 participant