id int64 0 190k | prompt stringlengths 21 13.4M | docstring stringlengths 1 12k ⌀ |
|---|---|---|
16,397 | from typing import List, Optional
from helm.benchmark.adaptation.adapter_spec import AdapterSpec
from helm.benchmark.adaptation.adapters.adapter_factory import ADAPT_GENERATION
from helm.benchmark.metrics.metric import MetricSpec
from helm.benchmark.run_spec import RunSpec, run_spec_function
from helm.benchmark.run_spe... | null |
16,398 | from typing import List, Optional
from helm.benchmark.adaptation.adapter_spec import ADAPT_MULTIPLE_CHOICE_JOINT
from helm.benchmark.adaptation.common_adapter_specs import (
get_completion_adapter_spec,
get_few_shot_instruct_adapter_spec,
get_generation_adapter_spec,
get_instruct_adapter_spec,
get_m... | null |
16,399 | from typing import List, Optional
from helm.benchmark.adaptation.adapter_spec import ADAPT_MULTIPLE_CHOICE_JOINT
from helm.benchmark.adaptation.common_adapter_specs import (
get_completion_adapter_spec,
get_few_shot_instruct_adapter_spec,
get_generation_adapter_spec,
get_instruct_adapter_spec,
get_m... | null |
16,400 | from typing import List, Optional
from helm.benchmark.adaptation.adapter_spec import ADAPT_MULTIPLE_CHOICE_JOINT
from helm.benchmark.adaptation.common_adapter_specs import (
get_completion_adapter_spec,
get_few_shot_instruct_adapter_spec,
get_generation_adapter_spec,
get_instruct_adapter_spec,
get_m... | null |
16,401 | from typing import List, Optional
from helm.benchmark.adaptation.adapter_spec import ADAPT_MULTIPLE_CHOICE_JOINT
from helm.benchmark.adaptation.common_adapter_specs import (
get_completion_adapter_spec,
get_few_shot_instruct_adapter_spec,
get_generation_adapter_spec,
get_instruct_adapter_spec,
get_m... | null |
16,402 | from typing import List, Optional
from helm.benchmark.adaptation.adapter_spec import ADAPT_MULTIPLE_CHOICE_JOINT
from helm.benchmark.adaptation.common_adapter_specs import (
get_completion_adapter_spec,
get_few_shot_instruct_adapter_spec,
get_generation_adapter_spec,
get_instruct_adapter_spec,
get_m... | null |
16,403 | from typing import List, Optional
from helm.benchmark.adaptation.adapter_spec import ADAPT_MULTIPLE_CHOICE_JOINT
from helm.benchmark.adaptation.common_adapter_specs import (
get_completion_adapter_spec,
get_few_shot_instruct_adapter_spec,
get_generation_adapter_spec,
get_instruct_adapter_spec,
get_m... | null |
16,404 | from typing import List, Optional
from helm.benchmark.adaptation.adapter_spec import ADAPT_MULTIPLE_CHOICE_JOINT
from helm.benchmark.adaptation.common_adapter_specs import (
get_completion_adapter_spec,
get_few_shot_instruct_adapter_spec,
get_generation_adapter_spec,
get_instruct_adapter_spec,
get_m... | null |
16,405 | from typing import List, Optional
from helm.benchmark.adaptation.adapter_spec import ADAPT_MULTIPLE_CHOICE_JOINT
from helm.benchmark.adaptation.common_adapter_specs import (
get_completion_adapter_spec,
get_few_shot_instruct_adapter_spec,
get_generation_adapter_spec,
get_instruct_adapter_spec,
get_m... | null |
16,406 | from typing import List, Optional, Dict
from helm.benchmark.adaptation.adapter_spec import AdapterSpec
from helm.benchmark.adaptation.adapters.adapter_factory import (
ADAPT_GENERATION_MULTIMODAL,
ADAPT_MULTIPLE_CHOICE_JOINT_MULTIMODAL,
)
from helm.benchmark.metrics.common_metric_specs import (
get_basic_re... | null |
16,407 | from typing import List, Optional, Dict
from helm.benchmark.adaptation.adapter_spec import AdapterSpec
from helm.benchmark.adaptation.adapters.adapter_factory import (
ADAPT_GENERATION_MULTIMODAL,
ADAPT_MULTIPLE_CHOICE_JOINT_MULTIMODAL,
)
from helm.benchmark.metrics.common_metric_specs import (
get_basic_re... | null |
16,408 | from typing import List, Optional, Dict
from helm.benchmark.adaptation.adapter_spec import AdapterSpec
from helm.benchmark.adaptation.adapters.adapter_factory import (
ADAPT_GENERATION_MULTIMODAL,
ADAPT_MULTIPLE_CHOICE_JOINT_MULTIMODAL,
)
from helm.benchmark.metrics.common_metric_specs import (
get_basic_re... | null |
16,409 | from typing import List, Optional, Dict
from helm.benchmark.adaptation.adapter_spec import AdapterSpec
from helm.benchmark.adaptation.adapters.adapter_factory import (
ADAPT_GENERATION_MULTIMODAL,
ADAPT_MULTIPLE_CHOICE_JOINT_MULTIMODAL,
)
from helm.benchmark.metrics.common_metric_specs import (
get_basic_re... | null |
16,410 | from typing import List, Optional, Dict
from helm.benchmark.adaptation.adapter_spec import AdapterSpec
from helm.benchmark.adaptation.adapters.adapter_factory import (
ADAPT_GENERATION_MULTIMODAL,
ADAPT_MULTIPLE_CHOICE_JOINT_MULTIMODAL,
)
from helm.benchmark.metrics.common_metric_specs import (
get_basic_re... | null |
16,411 | from typing import List, Optional, Dict
from helm.benchmark.adaptation.adapter_spec import AdapterSpec
from helm.benchmark.adaptation.adapters.adapter_factory import (
ADAPT_GENERATION_MULTIMODAL,
ADAPT_MULTIPLE_CHOICE_JOINT_MULTIMODAL,
)
from helm.benchmark.metrics.common_metric_specs import (
get_basic_re... | null |
16,412 | from typing import List, Optional, Dict
from helm.benchmark.adaptation.adapter_spec import AdapterSpec
from helm.benchmark.adaptation.adapters.adapter_factory import (
ADAPT_GENERATION_MULTIMODAL,
ADAPT_MULTIPLE_CHOICE_JOINT_MULTIMODAL,
)
from helm.benchmark.metrics.common_metric_specs import (
get_basic_re... | null |
16,413 | from typing import List, Optional, Dict
from helm.benchmark.adaptation.adapter_spec import AdapterSpec
from helm.benchmark.adaptation.adapters.adapter_factory import (
ADAPT_GENERATION_MULTIMODAL,
ADAPT_MULTIPLE_CHOICE_JOINT_MULTIMODAL,
)
from helm.benchmark.metrics.common_metric_specs import (
get_basic_re... | null |
16,414 | from typing import List, Optional, Dict
from helm.benchmark.adaptation.adapter_spec import AdapterSpec
from helm.benchmark.adaptation.adapters.adapter_factory import (
ADAPT_GENERATION_MULTIMODAL,
ADAPT_MULTIPLE_CHOICE_JOINT_MULTIMODAL,
)
from helm.benchmark.metrics.common_metric_specs import (
get_basic_re... | null |
16,415 | import itertools
from functools import partial
from typing import Callable, Dict, List, Optional
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_CALIBRATED,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
AdapterSpec,
)
from... | null |
16,416 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | A run spec for debugging. |
16,417 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,418 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,419 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,420 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,421 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,422 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,423 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,424 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,425 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,426 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,427 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,428 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,429 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,430 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,431 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,432 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,433 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,434 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,435 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,436 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,437 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,438 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,439 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,440 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,441 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,442 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,443 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,444 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,445 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,446 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,447 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,448 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,449 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,450 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,451 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,452 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,453 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,454 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,455 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,456 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,457 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,458 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,459 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,460 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,461 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,462 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,463 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,464 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,465 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,466 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,467 | from typing import Any, Dict, List, Optional, Set
from helm.benchmark.adaptation.adapter_spec import (
ADAPT_GENERATION,
ADAPT_MULTIPLE_CHOICE_JOINT,
ADAPT_MULTIPLE_CHOICE_SEPARATE_ORIGINAL,
ADAPT_RANKING_BINARY,
AdapterSpec,
)
from helm.benchmark.adaptation.adapters.binary_ranking_adapter import Bi... | null |
16,468 | import argparse
import importlib_resources as resources
import json
from os import path
import urllib
from bottle import Bottle, static_file, HTTPResponse
import yaml
from helm.benchmark.presentation.schema import SCHEMA_CLASSIC_YAML_FILENAME
from helm.common.general import serialize_dates
app = Bottle()
def serve_con... | null |
16,469 | import argparse
import importlib_resources as resources
import json
from os import path
import urllib
from bottle import Bottle, static_file, HTTPResponse
import yaml
from helm.benchmark.presentation.schema import SCHEMA_CLASSIC_YAML_FILENAME
from helm.common.general import serialize_dates
app = Bottle()
SCHEMA_CLASSI... | null |
16,470 | import argparse
import importlib_resources as resources
import json
from os import path
import urllib
from bottle import Bottle, static_file, HTTPResponse
import yaml
from helm.benchmark.presentation.schema import SCHEMA_CLASSIC_YAML_FILENAME
from helm.common.general import serialize_dates
app = Bottle()
def serve_ben... | null |
16,471 | import argparse
import importlib_resources as resources
import json
from os import path
import urllib
from bottle import Bottle, static_file, HTTPResponse
import yaml
from helm.benchmark.presentation.schema import SCHEMA_CLASSIC_YAML_FILENAME
from helm.common.general import serialize_dates
app = Bottle()
def serve_sta... | null |
16,472 | import signal
import threading
import traceback
from typing import List
import os
import time
import torch
import torch.multiprocessing as multiprocessing
from concurrent.futures import ProcessPoolExecutor as Pool
from tqdm import tqdm
from helm.benchmark.config_registry import (
register_configs_from_directory,
... | null |
16,473 | import signal
import threading
import traceback
from typing import List
import os
import time
import torch
import torch.multiprocessing as multiprocessing
from concurrent.futures import ProcessPoolExecutor as Pool
from tqdm import tqdm
from helm.benchmark.config_registry import (
register_configs_from_directory,
... | null |
16,474 | import os
from typing import Optional
from helm.benchmark.model_deployment_registry import (
ClientSpec,
ModelDeployment,
register_model_deployment,
)
from helm.benchmark.model_metadata_registry import (
get_model_metadata,
get_unknown_model_metadata,
register_model_metadata,
)
from helm.benchma... | null |
16,475 | import os
from typing import Optional
from helm.benchmark.model_deployment_registry import (
ClientSpec,
ModelDeployment,
register_model_deployment,
)
from helm.benchmark.model_metadata_registry import (
get_model_metadata,
get_unknown_model_metadata,
register_model_metadata,
)
from helm.benchma... | null |
16,476 | from abc import ABC, abstractmethod
from typing import Any, Dict, List, Tuple, Callable
from helm.benchmark.annotation.annotator import Annotator
from helm.benchmark.adaptation.request_state import RequestState
from helm.common.cache import Cache, CacheConfig
from helm.common.file_caches.local_file_cache import LocalPI... | Retries when the compilation fails. |
16,477 | from typing import Dict, Optional, List
from dataclasses import dataclass
import cattrs
import yaml
from helm.common.hierarchical_logger import hlog
from helm.common.object_spec import ObjectSpec
from helm.benchmark.model_metadata_registry import (
ModelMetadata,
get_model_metadata,
get_unknown_model_metada... | Return the host organization name based on the model deployment name. Example: "huggingface/t5-11b" -> "huggingface |
16,478 | from typing import Dict, Optional, List
from dataclasses import dataclass
import cattrs
import yaml
from helm.common.hierarchical_logger import hlog
from helm.common.object_spec import ObjectSpec
from helm.benchmark.model_metadata_registry import (
ModelMetadata,
get_model_metadata,
get_unknown_model_metada... | Return the names of all models with the given tokenizer. |
16,479 | from typing import Any, Mapping, Optional
from helm.common.hierarchical_logger import hlog
def hlog(x: Any) -> None:
singleton.log(x)
def provide_api_key(
credentials: Mapping[str, Any], host_organization: str, model: Optional[str] = None
) -> Optional[str]:
api_key_name = host_organization + "ApiKey"
... | null |
16,480 | import importlib
import dataclasses
from dataclasses import dataclass, field
import inspect
from typing import Any, Callable, Dict, Optional, Tuple, Hashable, Type, TypeVar
def get_class_by_name(full_class_name: str) -> Type[Any]:
components = full_class_name.split(".")
class_name = components[-1]
module_na... | Return a new ObjectSpec that is a copy of the original ObjectSpec with additional arguments. The original ObjectSpec may be missing arguments for parameters that are required by the ObjectSpec's class's constructor. This function returns a new ObjectSpec with these missing parameter filled in. To do this, for every mis... |
16,481 | import torch
def get_torch_device_name() -> str:
"""Return the device name based on whether CUDA is available."""
return "cuda" if is_cuda_available() else "cpu"
The provided code snippet includes necessary dependencies for implementing the `get_torch_device` function. Write a Python function `def get_torch_de... | Checks if CUDA is available on the machine and returns PyTorch device. |
16,482 | import dataclasses
import json
import typing
from typing import Any, Callable, Dict, List, Union, Type, TypeVar
from helm.benchmark.augmentations.cleva_perturbation import (
ChineseTyposPerturbation,
ChineseSynonymPerturbation,
ChineseGenderPerturbation,
ChinesePersonNamePerturbation,
)
from helm.benchm... | null |
16,483 | import dataclasses
import json
import typing
from typing import Any, Callable, Dict, List, Union, Type, TypeVar
from helm.benchmark.augmentations.cleva_perturbation import (
ChineseTyposPerturbation,
ChineseSynonymPerturbation,
ChineseGenderPerturbation,
ChinesePersonNamePerturbation,
)
from helm.benchm... | null |
16,484 | import dataclasses
import json
import typing
from typing import Any, Callable, Dict, List, Union, Type, TypeVar
from helm.benchmark.augmentations.cleva_perturbation import (
ChineseTyposPerturbation,
ChineseSynonymPerturbation,
ChineseGenderPerturbation,
ChinesePersonNamePerturbation,
)
from helm.benchm... | null |
16,485 | import time
from dataclasses import dataclass, field
from typing import Any, Callable, Dict, List, Optional
from helm.common.media_object import MultimediaObject
from helm.common.image_generation_parameters import ImageGenerationParameters
from .general import indent_lines, format_text
The provided code snippet includ... | Return a version of `compute` that puts `request_time` into its output. |
16,486 | from collections import defaultdict
from dataclasses import dataclass
from typing import Dict, Callable, Generator, Mapping, Optional, Tuple
import json
import threading
import sqlite3
from helm.common.general import hlog, htrack
from helm.common.key_value_store import BlackHoleKeyValueStore, KeyValueStore, SqliteKeyVa... | Retries when the write fails. |
16,487 | from collections import defaultdict
from dataclasses import dataclass
from typing import Dict, Callable, Generator, Mapping, Optional, Tuple
import json
import threading
import sqlite3
from helm.common.general import hlog, htrack
from helm.common.key_value_store import BlackHoleKeyValueStore, KeyValueStore, SqliteKeyVa... | Yields all decoded key, value pairs from the SQLite cache. Thread-hostile. Does not load the entire database into memory, unlike SqliteDict.items(). |
16,488 | from collections import defaultdict
from dataclasses import dataclass
from typing import Dict, Callable, Generator, Mapping, Optional, Tuple
import json
import threading
import sqlite3
from helm.common.general import hlog, htrack
from helm.common.key_value_store import BlackHoleKeyValueStore, KeyValueStore, SqliteKeyVa... | Write to the key value store with retry. Returns boolean indicating whether the write was successful or not. |
16,489 | import base64
import io
import requests
import shutil
from typing import List, Optional
from urllib.request import urlopen
import numpy as np
from .general import is_url
from helm.common.optional_dependencies import handle_module_not_found_error
def open_image(image_location: str) -> Image.Image:
"""
Opens imag... | Copies the image file from `src` path to `dest` path. If dimensions `width` and `height` are specified, resizes the image before copying. `src` can be a URL. |
16,490 | import base64
import io
import requests
import shutil
from typing import List, Optional
from urllib.request import urlopen
import numpy as np
from .general import is_url
from helm.common.optional_dependencies import handle_module_not_found_error
def is_blacked_out_image(image_location: str) -> bool:
"""Returns True... | Returns a list of image locations that are not blacked out. |
16,491 | from typing import List, Optional
from helm.benchmark.adaptation.request_state import RequestState
from helm.benchmark.scenarios.scenario import Reference
from helm.common.request import RequestResult
class RequestState:
"""
A `RequestState` represents a single `Request` made on behalf of an `Instance`.
It... | Returns the first gold image location. |
16,492 | from filelock import FileLock
import json
import os
import shlex
import subprocess
import urllib
import uuid
import zstandard
from typing import Any, Callable, Dict, List, Optional, TypeVar
from datetime import datetime, date
from concurrent.futures import ThreadPoolExecutor
from tqdm import tqdm
import pyhocon
from da... | Input: Nested lists Output: Flattened input |
16,493 | from filelock import FileLock
import json
import os
import shlex
import subprocess
import urllib
import uuid
import zstandard
from typing import Any, Callable, Dict, List, Optional, TypeVar
from datetime import datetime, date
from concurrent.futures import ThreadPoolExecutor
from tqdm import tqdm
import pyhocon
from da... | null |
16,494 | from filelock import FileLock
import json
import os
import shlex
import subprocess
import urllib
import uuid
import zstandard
from typing import Any, Callable, Dict, List, Optional, TypeVar
from datetime import datetime, date
from concurrent.futures import ThreadPoolExecutor
from tqdm import tqdm
import pyhocon
from da... | null |
16,495 | from filelock import FileLock
import json
import os
import shlex
import subprocess
import urllib
import uuid
import zstandard
from typing import Any, Callable, Dict, List, Optional, TypeVar
from datetime import datetime, date
from concurrent.futures import ThreadPoolExecutor
from tqdm import tqdm
import pyhocon
from da... | Takes a list of tags and outputs a string: tag_1,tag_2,...,tag_n |
16,496 | from filelock import FileLock
import json
import os
import shlex
import subprocess
import urllib
import uuid
import zstandard
from typing import Any, Callable, Dict, List, Optional, TypeVar
from datetime import datetime, date
from concurrent.futures import ThreadPoolExecutor
from tqdm import tqdm
import pyhocon
from da... | Format split |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.