mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
more linter nonsense
This commit is contained in:
parent
f18d46549d
commit
abdda3978a
29 changed files with 113 additions and 151 deletions
|
|
@ -282,7 +282,7 @@ class MuSREvalEnv(BaseEnv):
|
|||
if isinstance(choices_raw, str):
|
||||
try:
|
||||
choices = ast.literal_eval(choices_raw)
|
||||
except:
|
||||
except Exception:
|
||||
choices = []
|
||||
else:
|
||||
choices = choices_raw
|
||||
|
|
@ -301,7 +301,7 @@ class MuSREvalEnv(BaseEnv):
|
|||
|
||||
async def setup(self) -> None:
|
||||
"""Load the MuSR dataset and prepare for evaluation."""
|
||||
print(f"\nMuSR Evaluation Setup:")
|
||||
print("\nMuSR Evaluation Setup:")
|
||||
print(f" Dataset: {self.config.dataset_name}")
|
||||
print(f" Subset: {self.config.subset}")
|
||||
print(f" Max tokens: {self.config.eval_max_tokens}")
|
||||
|
|
@ -495,7 +495,7 @@ class MuSREvalEnv(BaseEnv):
|
|||
print(
|
||||
f" Response: {e.response.text[:500] if hasattr(e.response, 'text') else e.response}"
|
||||
)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
if attempt < self.config.max_retries - 1:
|
||||
await asyncio.sleep(self.config.retry_delay)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue