repo_id stringclasses 400
values | commit_sha stringclasses 400
values | commit_index int32 0 951 | in_repo_split stringclasses 1
value | cross_repo_split stringclasses 1
value | test_file stringlengths 7 121 | test_function stringlengths 1 108 | assertion_type stringclasses 32
values | difficulty stringclasses 8
values | context_lines int32 3 600 | prefix large_stringlengths 44 113k | target large_stringlengths 1 498 | anchor_sha stringclasses 400
values | anchor_index int32 0 951 | qna_source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_model_views.py | create_object | assert | numeric_literal | 54 | from __future__ import annotations
import json as json_module
from datetime import datetime
from typing import TYPE_CHECKING
import pytest
from api.constants import ID_LENGTH, PUBLIC_ID_LENGTH
pytestmark = pytest.mark.anyio
class ViewTestMixin:
name: str # name used in endpoints
create_auth: bool = True
... | 200 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_model_views.py | create_object | assert | numeric_literal | 50 | from __future__ import annotations
import json as json_module
from datetime import datetime
from typing import TYPE_CHECKING
import pytest
from api.constants import ID_LENGTH, PUBLIC_ID_LENGTH
pytestmark = pytest.mark.anyio
class ViewTestMixin:
name: str # name used in endpoints
create_auth: bool = True
... | 401 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_model_views.py | test_delete | assert | numeric_literal | 94 | from __future__ import annotations
import json as json_module
from datetime import datetime
from typing import TYPE_CHECKING
import pytest
from api.constants import ID_LENGTH, PUBLIC_ID_LENGTH
pytestmark = pytest.mark.anyio
class ViewTestMixin:
name: str # name used in endpoints
create_auth: bool = True
... | 404 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_model_views.py | _check_key | assert | variable | 65 | from __future__ import annotations
import json as json_module
from datetime import datetime
from typing import TYPE_CHECKING
import pytest
from api.constants import ID_LENGTH, PUBLIC_ID_LENGTH
pytestmark = pytest.mark.anyio
class ViewTestMixin:
name: str # name used in endpoints
create_auth: bool = True
... | data | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_model_views.py | setup | assert | none_literal | 31 | from __future__ import annotations
import json as json_module
from datetime import datetime
from typing import TYPE_CHECKING
import pytest
from api.constants import ID_LENGTH, PUBLIC_ID_LENGTH
pytestmark = pytest.mark.anyio
class ViewTestMixin:
name: str # name used in endpoints
create_auth: bool = True
... | None | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_model_views.py | check_id | assert | variable | 70 | from __future__ import annotations
import json as json_module
from datetime import datetime
from typing import TYPE_CHECKING
import pytest
from api.constants import ID_LENGTH, PUBLIC_ID_LENGTH
pytestmark = pytest.mark.anyio
class ViewTestMixin:
name: str # name used in endpoints
create_auth: bool = True
... | id_length | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_model_views.py | test_update | assert | variable | 105 | from __future__ import annotations
import json as json_module
from datetime import datetime
from typing import TYPE_CHECKING
import pytest
from api.constants import ID_LENGTH, PUBLIC_ID_LENGTH
pytestmark = pytest.mark.anyio
class ViewTestMixin:
name: str # name used in endpoints
create_auth: bool = True
... | patch_resp | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views.py | test_rate | assert | numeric_literal | 34 | from __future__ import annotations
import asyncio
import json as json_module
import os
from collections import defaultdict
from decimal import Decimal
from typing import TYPE_CHECKING
import pyotp
import pytest
from bitcart import BTC, LTC
from bitcart.errors import BaseError as BitcartBaseError
from httpx_ws import ... | 0 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views.py | test_wallet_history | assert | numeric_literal | 37 | from __future__ import annotations
import asyncio
import json as json_module
import os
from collections import defaultdict
from decimal import Decimal
from typing import TYPE_CHECKING
import pyotp
import pytest
from bitcart import BTC, LTC
from bitcart.errors import BaseError as BitcartBaseError
from httpx_ws import ... | 1 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views.py | test_users_me | assert | variable | 35 | from __future__ import annotations
import asyncio
import json as json_module
import os
from collections import defaultdict
from decimal import Decimal
from typing import TYPE_CHECKING
import pyotp
import pytest
from bitcart import BTC, LTC
from bitcart.errors import BaseError as BitcartBaseError
from httpx_ws import ... | j | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views.py | test_multiple_wallets_same_currency | assert | numeric_literal | 68 | from __future__ import annotations
import asyncio
import json as json_module
import os
from collections import defaultdict
from decimal import Decimal
from typing import TYPE_CHECKING
import pyotp
import pytest
from bitcart import BTC, LTC
from bitcart.errors import BaseError as BitcartBaseError
from httpx_ws import ... | 2 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_paginations.py | test_multiple_query | assert | numeric_literal | 21 | from __future__ import annotations
from datetime import timedelta
from typing import TYPE_CHECKING
from urllib.parse import quote
import pytest
from api import utils
from tests.helper import create_invoice, create_product, create_token, create_user
pytestmark = pytest.mark.anyio
async def test_multiple_query(clien... | 2 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_paginations.py | test_products_pagination | assert | numeric_literal | 22 | from __future__ import annotations
from datetime import timedelta
from typing import TYPE_CHECKING
from urllib.parse import quote
import pytest
from api import utils
from tests.helper import create_invoice, create_product, create_token, create_user
pytestmark = pytest.mark.anyio
async def test_products_pagination(... | 0 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_paginations.py | test_token_pagination | assert | numeric_literal | 22 | from __future__ import annotations
from datetime import timedelta
from typing import TYPE_CHECKING
from urllib.parse import quote
import pytest
from api import utils
from tests.helper import create_invoice, create_product, create_token, create_user
pytestmark = pytest.mark.anyio
async def test_token_pagination(cli... | 1 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_paginations.py | test_undefined_sort | assert | collection | 17 | from __future__ import annotations
from datetime import timedelta
from typing import TYPE_CHECKING
from urllib.parse import quote
import pytest
from api import utils
from tests.helper import create_invoice, create_product, create_token, create_user
pytestmark = pytest.mark.anyio
async def test_undefined_sort(clien... | [] | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_paginations.py | test_multiple_query | assert | numeric_literal | 20 | from __future__ import annotations
from datetime import timedelta
from typing import TYPE_CHECKING
from urllib.parse import quote
import pytest
from api import utils
from tests.helper import create_invoice, create_product, create_token, create_user
pytestmark = pytest.mark.anyio
async def test_multiple_query(clien... | 200 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_paginations.py | check_query | assert | variable | 22 | from __future__ import annotations
from datetime import timedelta
from typing import TYPE_CHECKING
from urllib.parse import quote
import pytest
from api import utils
from tests.helper import create_invoice, create_product, create_token, create_user
pytestmark = pytest.mark.anyio
async def check_query(client: TestC... | value | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_paginations.py | check_start_date_query | assert | variable | 30 | from __future__ import annotations
from datetime import timedelta
from typing import TYPE_CHECKING
from urllib.parse import quote
import pytest
from api import utils
from tests.helper import create_invoice, create_product, create_token, create_user
pytestmark = pytest.mark.anyio
async def check_query(client: TestC... | first_id | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_paginations.py | check_query | assert | variable | 19 | from __future__ import annotations
from datetime import timedelta
from typing import TYPE_CHECKING
from urllib.parse import quote
import pytest
from api import utils
from tests.helper import create_invoice, create_product, create_token, create_user
pytestmark = pytest.mark.anyio
async def check_query(client: TestC... | expected_count | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_validation.py | test_edge_fiatlist_cases | assert | numeric_literal | 34 | from __future__ import annotations
import json
from typing import TYPE_CHECKING
import pytest
from bitcart.errors import BaseError as BitcartBaseError
from parametrization import Parametrization
from api import schemes
from api.constants import BACKUP_FREQUENCIES, BACKUP_PROVIDERS, FEE_ETA_TARGETS, MAX_CONFIRMATION_... | 30 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_validation.py | check_validation_failed | assert | numeric_literal | 27 | from __future__ import annotations
import json
from typing import TYPE_CHECKING
import pytest
from bitcart.errors import BaseError as BitcartBaseError
from parametrization import Parametrization
from api import schemes
from api.constants import BACKUP_FREQUENCIES, BACKUP_PROVIDERS, FEE_ETA_TARGETS, MAX_CONFIRMATION_... | 422 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_validation.py | test_wallet_invalid_xpub | assert | numeric_literal | 39 | from __future__ import annotations
import json
from typing import TYPE_CHECKING
import pytest
from bitcart.errors import BaseError as BitcartBaseError
from parametrization import Parametrization
from api import schemes
from api.constants import BACKUP_FREQUENCIES, BACKUP_PROVIDERS, FEE_ETA_TARGETS, MAX_CONFIRMATION_... | 200 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_validation.py | test_invalid_fk_constaint | assert | numeric_literal | 35 | from __future__ import annotations
import json
from typing import TYPE_CHECKING
import pytest
from bitcart.errors import BaseError as BitcartBaseError
from parametrization import Parametrization
from api import schemes
from api.constants import BACKUP_FREQUENCIES, BACKUP_PROVIDERS, FEE_ETA_TARGETS, MAX_CONFIRMATION_... | 403 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_validation.py | test_invalid_fk_constaint | assert | numeric_literal | 38 | from __future__ import annotations
import json
from typing import TYPE_CHECKING
import pytest
from bitcart.errors import BaseError as BitcartBaseError
from parametrization import Parametrization
from api import schemes
from api.constants import BACKUP_FREQUENCIES, BACKUP_PROVIDERS, FEE_ETA_TARGETS, MAX_CONFIRMATION_... | 404 | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitcart/bitcart | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | train | train | tests/test_views/test_views_validation.py | test_access_control_strict | assert | none_literal | 38 | from __future__ import annotations
import json
from typing import TYPE_CHECKING
import pytest
from bitcart.errors import BaseError as BitcartBaseError
from parametrization import Parametrization
from api import schemes
from api.constants import BACKUP_FREQUENCIES, BACKUP_PROVIDERS, FEE_ETA_TARGETS, MAX_CONFIRMATION_... | None | 53b7c4532aa6ab59f4dc189b7367021c772682df | 143 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_autograd.py | test_matmullt | assert | numeric_literal | 140 | import pytest
import torch
import bitsandbytes as bnb
from tests.helpers import (
BOOLEAN_TRIPLES,
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supported_on_hpu,
)
TRANSPOSE_VALS = [(False, True), (False, False)]
@pytest.mark.parametrize("device", get_available_devices(... | 0.0 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_autograd.py | test_matmul_4bit | assert | numeric_literal | 89 | import pytest
import torch
import bitsandbytes as bnb
from tests.helpers import (
BOOLEAN_TRIPLES,
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supported_on_hpu,
)
TRANSPOSE_VALS = [(False, True), (False, False)]
@pytest.mark.parametrize("device", get_available_devices(... | 0.115 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_autograd.py | test_matmullt | assert | complex_expr | 99 | import pytest
import torch
import bitsandbytes as bnb
from tests.helpers import (
BOOLEAN_TRIPLES,
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supported_on_hpu,
)
TRANSPOSE_VALS = [(False, True), (False, False)]
@pytest.mark.parametrize("device", get_available_devices(... | A.dtype | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_autograd.py | test_matmul_4bit | assert_* | variable | 120 | import pytest
import torch
import bitsandbytes as bnb
from tests.helpers import (
BOOLEAN_TRIPLES,
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supported_on_hpu,
)
TRANSPOSE_VALS = [(False, True), (False, False)]
@pytest.mark.parametrize("device", get_available_devices(... | gradA2) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_autograd.py | test_matmul_4bit | assert_* | variable | 123 | import pytest
import torch
import bitsandbytes as bnb
from tests.helpers import (
BOOLEAN_TRIPLES,
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supported_on_hpu,
)
TRANSPOSE_VALS = [(False, True), (False, False)]
@pytest.mark.parametrize("device", get_available_devices(... | gradBias2) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_cuda_setup_evaluator.py | test_get_cuda_bnb_library_path_override | assert | complex_expr | 18 | import pytest
from bitsandbytes.cextension import HIP_ENVIRONMENT, get_cuda_bnb_library_path
from bitsandbytes.cuda_specs import CUDASpecs
def cuda120_spec() -> CUDASpecs:
return CUDASpecs(
cuda_version_string="120",
highest_compute_capability=(8, 6),
cuda_version_tuple=(12, 0),
)
@py... | caplog.text | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_cuda_setup_evaluator.py | test_get_cuda_bnb_library_path | assert | string_literal | 17 | import pytest
from bitsandbytes.cextension import HIP_ENVIRONMENT, get_cuda_bnb_library_path
from bitsandbytes.cuda_specs import CUDASpecs
def cuda120_spec() -> CUDASpecs:
return CUDASpecs(
cuda_version_string="120",
highest_compute_capability=(8, 6),
cuda_version_tuple=(12, 0),
)
@py... | "libbitsandbytes_cuda120" | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_cuda_setup_evaluator.py | test_get_cuda_bnb_library_path_override | assert | string_literal | 17 | import pytest
from bitsandbytes.cextension import HIP_ENVIRONMENT, get_cuda_bnb_library_path
from bitsandbytes.cuda_specs import CUDASpecs
def cuda120_spec() -> CUDASpecs:
return CUDASpecs(
cuda_version_string="120",
highest_compute_capability=(8, 6),
cuda_version_tuple=(12, 0),
)
@py... | "libbitsandbytes_cuda110" | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_deprecated.py | test_dynamic_quantization | assert_* | variable | 31 | import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from tests.helpers import BOOLEAN_TRIPLES, describe_dtype, get_test_dims, id_formatter
from tests.test_autograd import TRANSPOSE_VALS
@pytest.mark.deprecated
def test_dynamic_quantization():
diffs = []
reldiffs = []... | A2) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_deprecated.py | test_matmul_fp8 | assert | numeric_literal | 79 | import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from tests.helpers import BOOLEAN_TRIPLES, describe_dtype, get_test_dims, id_formatter
from tests.test_autograd import TRANSPOSE_VALS
@pytest.mark.parametrize("dim1", get_test_dims(16, 64, n=1), ids=id_formatter("dim1"))
@p... | 0.0 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_deprecated.py | test_fp8linear | assert | numeric_literal | 36 | import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from tests.helpers import BOOLEAN_TRIPLES, describe_dtype, get_test_dims, id_formatter
from tests.test_autograd import TRANSPOSE_VALS
@pytest.mark.deprecated
def test_fp8linear():
b = 10
h = 1024
inp = torch.ran... | 0.05 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_deprecated.py | test_dynamic_quantization | assert | numeric_literal | 32 | import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from tests.helpers import BOOLEAN_TRIPLES, describe_dtype, get_test_dims, id_formatter
from tests.test_autograd import TRANSPOSE_VALS
@pytest.mark.deprecated
def test_dynamic_quantization():
diffs = []
reldiffs = []... | 0.004 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_deprecated.py | test_matmul_fp8 | assert | numeric_literal | 54 | import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from tests.helpers import BOOLEAN_TRIPLES, describe_dtype, get_test_dims, id_formatter
from tests.test_autograd import TRANSPOSE_VALS
@pytest.mark.parametrize("dim1", get_test_dims(16, 64, n=1), ids=id_formatter("dim1"))
@p... | 0.115 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_deprecated.py | test_dynamic_quantization | assert | numeric_literal | 22 | import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from tests.helpers import BOOLEAN_TRIPLES, describe_dtype, get_test_dims, id_formatter
from tests.test_autograd import TRANSPOSE_VALS
@pytest.mark.deprecated
def test_dynamic_quantization():
diffs = []
reldiffs = []... | 0.0135 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_deprecated.py | test_percentile_clipping | assert_* | variable | 34 | import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from tests.helpers import BOOLEAN_TRIPLES, describe_dtype, get_test_dims, id_formatter
from tests.test_autograd import TRANSPOSE_VALS
@pytest.mark.parametrize("gtype", [torch.float32, torch.float16], ids=["float", "half"])
... | clip2) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_deprecated.py | test_fp8linear | assert | numeric_literal | 37 | import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from tests.helpers import BOOLEAN_TRIPLES, describe_dtype, get_test_dims, id_formatter
from tests.test_autograd import TRANSPOSE_VALS
@pytest.mark.deprecated
def test_fp8linear():
b = 10
h = 1024
inp = torch.ran... | 0.00002 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_deprecated.py | test_percentile_clipping | assert_* | variable | 35 | import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from tests.helpers import BOOLEAN_TRIPLES, describe_dtype, get_test_dims, id_formatter
from tests.test_autograd import TRANSPOSE_VALS
@pytest.mark.parametrize("gtype", [torch.float32, torch.float16], ids=["float", "half"])
... | gnorm2) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_deprecated.py | test_percentile_clipping | assert_* | func_call | 33 | import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from tests.helpers import BOOLEAN_TRIPLES, describe_dtype, get_test_dims, id_formatter
from tests.test_autograd import TRANSPOSE_VALS
@pytest.mark.parametrize("gtype", [torch.float32, torch.float16], ids=["float", "half"])
... | torch.sqrt(gnorm_vec2)) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_colrow_absmax | assert | numeric_literal | 105 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | 2 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | assert_all_approx_close | assert_* | variable | 33 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | b) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_approx_igemm | assert_* | variable | 94 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | A) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_few_bit_quant | assert | numeric_literal | 63 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | 256 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_few_bit_quant | assert_* | variable | 91 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | q2) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_minmax_igemm | assert | numeric_literal | 148 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | 0.3 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_4bit_quant | assert | numeric_literal | 97 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | 0.1 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_integrated_int8_linear_matmul | assert_* | variable | 125 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | A1) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_integrated_int8_linear_matmul | assert_* | variable | 126 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | B1) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_dequant_mm | assert_* | variable | 134 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | C4) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_gemv_eye_4bit | assert_* | variable | 104 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | C3) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_gemv_eye_4bit | assert_* | variable | 105 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | C1) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_gemv_eye_4bit | assert_* | variable | 106 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | C2) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_coo_double_quant | assert_* | variable | 110 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | A2) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_minmax_igemm | assert | numeric_literal | 146 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | 0.41 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_4bit_quant | assert | numeric_literal | 98 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | 0.28 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_functional.py | test_4bit_quant | assert | numeric_literal | 100 | import math
import random
import time
import einops
import numpy as np
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes import functional as F
from bitsandbytes.cextension import HIP_ENVIRONMENT, ROCM_GPU_ARCH
from tests.helpers import (
BOOLEAN_TUPLES,
TRUE_FALSE,
describe_dtype,
... | 0.11 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_generation.py | test_pi | assert | variable | 102 | from itertools import product
import math
import pytest
import torch
from tests.helpers import TRUE_FALSE, describe_dtype, id_formatter
transformers = pytest.importorskip("transformers")
def get_4bit_config():
return transformers.BitsAndBytesConfig(
load_in_4bit=True,
load_in_8bit=False,
... | n_cases | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_linear_serialization | assert | variable | 123 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | d | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_linear_serialization | assert | complex_expr | 113 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | b.dtype | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_linear_serialization | assert | complex_expr | 150 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | c.dtype | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_linear4bit_torch_compile | assert_* | variable | 110 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | grad_ref) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_linear4bit_torch_compile | assert_* | variable | 97 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | ref_output) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_deepcopy_param | assert | variable | 56 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | dict_keys_copy | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_deepcopy_param | assert | variable | 55 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | dict_keys_after | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_linear4bit_torch_compile | assert | complex_expr | 94 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | ref_output.shape | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_linear4bit_torch_compile | assert | complex_expr | 96 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | ref_output.dtype | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_linear4bit_torch_compile | assert | complex_expr | 95 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | ref_output.device | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_deepcopy_param | assert | complex_expr | 51 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | copy_param.quant_state | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_params4bit_real_serialization | assert | variable | 63 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | dict_keys_deserialized | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_deepcopy_param | assert | func_call | 52 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | copy_param.data.data_ptr() | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_params4bit_real_serialization | assert | complex_expr | 57 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | deserialized_param.blocksize | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_params4bit_real_serialization | assert | complex_expr | 56 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | deserialized_param.quant_type | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_copy_param | assert | complex_expr | 48 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | shallow_copy_param.quant_state | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear4bit.py | test_params4bit_real_serialization | assert | complex_expr | 59 | import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.cextension import HIP_ENVIRONMENT
from tests.helpers import (
TRUE_FALSE,
describe_dtype,
get_available_devices,
id_formatter,
is_supp... | deserialized_param.quant_state | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear_no_igemmlt | assert | none_literal | 55 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | None | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear_no_igemmlt | assert_* | variable | 60 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | fx_ours) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bitlt_torch_compile | assert_* | variable | 106 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | grad_ref) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bitlt_torch_compile | assert_* | variable | 81 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | ref_output) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear_no_igemmlt | assert_* | complex_expr | 61 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | x_ours.grad) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear_serialization | pytest.raises | variable | 100 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | RuntimeError) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bit_deepcopy_param | assert | complex_expr | 43 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | deep_copy.bias | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bit_deepcopy_param | assert | complex_expr | 46 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | deep_copy.state | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bit_deepcopy_param | assert | complex_expr | 42 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | deep_copy.weight | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bitlt_torch_compile | assert | complex_expr | 78 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | ref_output.shape | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bitlt_torch_compile | assert | complex_expr | 80 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | ref_output.dtype | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bit_copy_param | assert | complex_expr | 43 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | shallow_copy.bias | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bitlt_torch_compile | assert | complex_expr | 79 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | ref_output.device | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bit_serialization | assert | complex_expr | 47 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | deserialized.state | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bit_copy_param | assert | complex_expr | 42 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | shallow_copy.weight | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear_no_igemmlt | assert | func_call | 59 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | fx_ref.numel() * 2.5e-4 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear8bit_serialization | assert | func_call | 45 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | deserialized.bias.data.data_ptr() | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_linear8bitlt.py | test_linear_serialization | assert | func_call | 87 | from contextlib import nullcontext
import copy
import os
import pickle
import platform
from tempfile import TemporaryDirectory
import pytest
import torch
import bitsandbytes as bnb
from bitsandbytes.nn.modules import Linear8bitLt
from tests.helpers import (
TRUE_FALSE,
get_available_devices,
id_formatter,... | 0.5 * os.path.getsize(state_path) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_modules.py | test_4bit_linear_warnings | assert | numeric_literal | 51 | import inspect
import pytest
import torch
from torch import nn
import bitsandbytes as bnb
from tests.helpers import get_available_devices, id_formatter, is_supported_on_hpu
def get_args():
args = MockArgs([])
args.quant_type = "vector"
args.use_8bit_training = "full"
args.clip_freq = 9999
return ... | 2 | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_modules.py | assert_all_approx_close | assert_* | variable | 23 | import inspect
import pytest
import torch
from torch import nn
import bitsandbytes as bnb
from tests.helpers import get_available_devices, id_formatter, is_supported_on_hpu
def get_args():
args = MockArgs([])
args.quant_type = "vector"
args.use_8bit_training = "full"
args.clip_freq = 9999
return ... | b) | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_modules.py | test_linear8bitlt_inference | assert | none_literal | 37 | import inspect
import pytest
import torch
from torch import nn
import bitsandbytes as bnb
from tests.helpers import get_available_devices, id_formatter, is_supported_on_hpu
def get_args():
args = MockArgs([])
args.quant_type = "vector"
args.use_8bit_training = "full"
args.clip_freq = 9999
return ... | None | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
bitsandbytes-foundation/bitsandbytes | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | train | train | tests/test_modules.py | test_linear8bitlt_inference | assert | variable | 29 | import inspect
import pytest
import torch
from torch import nn
import bitsandbytes as bnb
from tests.helpers import get_available_devices, id_formatter, is_supported_on_hpu
def get_args():
args = MockArgs([])
args.quant_type = "vector"
args.use_8bit_training = "full"
args.clip_freq = 9999
return ... | device | 14147f6f4aacc217f207b11a97b3ef7c7da57763 | 140 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.