repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/prepend_dataset.py
fairseq/data/prepend_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import numpy as np import torch from . import BaseWrapperDataset class PrependDataset(BaseWrapperDataset): def __init__(self, dataset, ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/add_target_dataset.py
fairseq/data/add_target_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from . import BaseWrapperDataset, data_utils from fairseq.data.text_compressor import TextCompressor, TextCompressionLevel cla...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/id_dataset.py
fairseq/data/id_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from . import FairseqDataset class IdDataset(FairseqDataset): def __getitem__(self, index): return index def ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/pad_dataset.py
fairseq/data/pad_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from fairseq.data import data_utils from . import BaseWrapperDataset class PadDataset(BaseWrapperDataset): def __init__(self, dataset, ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/bucket_pad_length_dataset.py
fairseq/data/bucket_pad_length_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import numpy as np import torch.nn.functional as F from fairseq.data import BaseWrapperDataset from fairseq.data.data_utils import get_buckets...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/sort_dataset.py
fairseq/data/sort_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import numpy as np from . import BaseWrapperDataset class SortDataset(BaseWrapperDataset): def __init__(self, dataset, sort_order): ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/padding_mask_dataset.py
fairseq/data/padding_mask_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from fairseq.data import data_utils from . import BaseWrapperDataset class PaddingMaskDataset(BaseWrapperDataset): def __i...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/round_robin_zip_datasets.py
fairseq/data/round_robin_zip_datasets.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from collections import OrderedDict from typing import Dict, Sequence import numpy as np from . import FairseqDataset, Langua...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/text_compressor.py
fairseq/data/text_compressor.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from enum import Enum class TextCompressionLevel(Enum): none = 0 low = 1 high = 2 class TextCompressor(object): def __init...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/indexed_dataset.py
fairseq/data/indexed_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import shutil import struct from functools import lru_cache import numpy as np import torch from fairseq.dataclass.constants import DATASET_I...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/roll_dataset.py
fairseq/data/roll_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from . import BaseWrapperDataset class RollDataset(BaseWrapperDataset): def __init__(self, dataset, shifts): super...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/resampling_dataset.py
fairseq/data/resampling_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import numpy as np from fairseq.data import BaseWrapperDataset, plasma_utils logger = logging.getLogger(__name__) class Re...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/offset_tokens_dataset.py
fairseq/data/offset_tokens_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from . import BaseWrapperDataset class OffsetTokensDataset(BaseWrapperDataset): def __init__(self, dataset, offset): super().__i...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/nested_dictionary_dataset.py
fairseq/data/nested_dictionary_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from collections import OrderedDict import torch from torch.utils.data.dataloader import default_collate from . import FairseqDataset def ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/concat_dataset.py
fairseq/data/concat_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import bisect import numpy as np from torch.utils.data.dataloader import default_collate from . import FairseqDataset class ConcatDataset(...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/multilingual/sampled_multi_epoch_dataset.py
fairseq/data/multilingual/sampled_multi_epoch_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import hashlib import logging import math import numpy as np from fairseq.data import SampledMultiDataset from .sampled_multi_dataset impor...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/multilingual/multilingual_data_manager.py
fairseq/data/multilingual/multilingual_data_manager.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import itertools import json import logging import math import os from collections import OrderedDict, defaultdict from argparse import Argume...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
true
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/multilingual/sampled_multi_dataset.py
fairseq/data/multilingual/sampled_multi_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import datetime import hashlib import logging import time from bisect import bisect_right from collections import OrderedDict, defaultdict fro...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/multilingual/multilingual_utils.py
fairseq/data/multilingual/multilingual_utils.py
from enum import Enum from typing import Dict, List, Optional, Sequence import torch from fairseq.data import Dictionary class EncoderLangtok(Enum): """ Prepend to the beginning of source sentence either the source or target language token. (src/tgt). """ src = "src" tgt = "tgt" class Lang...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/multilingual/__init__.py
fairseq/data/multilingual/__init__.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/multilingual/sampling_method.py
fairseq/data/multilingual/sampling_method.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from typing import List logger = logging.getLogger(__name__) def uniform(dataset_sizes: List[int]): return [1.0] * len(...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/subword_nmt_bpe.py
fairseq/data/encoders/subword_nmt_bpe.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field from fairseq import file_utils from fairseq.data.encoders import register_bpe from fairseq.dataclass...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/hf_byte_bpe.py
fairseq/data/encoders/hf_byte_bpe.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field from fairseq.data.encoders import register_bpe from fairseq.dataclass import FairseqDataclass from f...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/gpt2_bpe.py
fairseq/data/encoders/gpt2_bpe.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field from fairseq import file_utils from fairseq.data.encoders import register_bpe from fairseq.dataclass...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/gpt2_bpe_utils.py
fairseq/data/encoders/gpt2_bpe_utils.py
""" Byte pair encoding utilities from GPT-2. Original source: https://github.com/openai/gpt-2/blob/master/src/encoder.py Original license: MIT """ import json from functools import lru_cache @lru_cache() def bytes_to_unicode(): """ Returns list of utf-8 byte and a corresponding list of unicode strings. ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/hf_bert_bpe.py
fairseq/data/encoders/hf_bert_bpe.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field from typing import Optional from fairseq.data.encoders import register_bpe from fairseq.dataclass im...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/moses_tokenizer.py
fairseq/data/encoders/moses_tokenizer.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field from fairseq.data.encoders import register_tokenizer from fairseq.dataclass import FairseqDataclass ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/sentencepiece_bpe.py
fairseq/data/encoders/sentencepiece_bpe.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field from typing import Optional from fairseq import file_utils from fairseq.data.encoders import registe...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/nltk_tokenizer.py
fairseq/data/encoders/nltk_tokenizer.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from fairseq.data.encoders import register_tokenizer from fairseq.dataclass import FairseqDataclass @register_tokenizer("nltk", dataclass=Fa...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/fastbpe.py
fairseq/data/encoders/fastbpe.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field from fairseq import file_utils from fairseq.data.encoders import register_bpe from fairseq.dataclass...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/utils.py
fairseq/data/encoders/utils.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from fairseq.data import encoders def get_whole_word_mask(args, dictionary): bpe = encoders.build_bpe(args) if bpe is n...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/space_tokenizer.py
fairseq/data/encoders/space_tokenizer.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import re from fairseq.data.encoders import register_tokenizer from fairseq.dataclass import FairseqDataclass @register_tokenizer("space", ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/bytes.py
fairseq/data/encoders/bytes.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from fairseq.data.encoders import register_bpe from fairseq.data.encoders.byte_utils import ( SPACE, SPACE_ESCAPE, byte_encode, ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/__init__.py
fairseq/data/encoders/__init__.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import importlib import os from fairseq import registry build_tokenizer, register_tokenizer, TOKENIZER_REGISTRY, _ = registry.setup_regist...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/characters.py
fairseq/data/encoders/characters.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from fairseq.data.encoders import register_bpe SPACE = chr(32) SPACE_ESCAPE = chr(9601) @register_bpe("characters") class Characters(obje...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/byte_utils.py
fairseq/data/encoders/byte_utils.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import re WHITESPACE_NORMALIZER = re.compile(r"\s+") SPACE = chr(32) SPACE_ESCAPE = chr(9601) # excluding non-breaking space (160) here PRIN...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/encoders/byte_bpe.py
fairseq/data/encoders/byte_bpe.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field from fairseq import file_utils from fairseq.data.encoders import register_bpe from fairseq.data.enc...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/huffman/huffman_mmap_indexed_dataset.py
fairseq/data/huffman/huffman_mmap_indexed_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import mmap import os import shutil import struct import typing as tp from functools import lru_cache import numpy as np import torch from fa...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/huffman/__init__.py
fairseq/data/huffman/__init__.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .huffman_coder import HuffmanCodeBuilder, HuffmanCoder from .huffman_mmap_indexed_dataset import ( HuffmanMMapIndex, HuffmanMMapI...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/huffman/huffman_coder.py
fairseq/data/huffman/huffman_coder.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import re import typing as tp from collections import Counter, deque from dataclasses import dataclass from bitarray import bitarray, util fr...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/audio_utils.py
fairseq/data/audio/audio_utils.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import mmap from pathlib import Path import io from typing import BinaryIO, List, Optional, Tuple, Union import numpy as np import torch imp...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/speech_to_speech_dataset.py
fairseq/data/audio/speech_to_speech_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from dataclasses import dataclass from pathlib import Path from typing import Dict, List, Optional, Tuple import torch from f...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/raw_audio_dataset.py
fairseq/data/audio/raw_audio_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import os import sys import time import io import numpy as np import torch import torch.nn.functional as F from .. import Fa...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/speech_to_text_joint_dataset.py
fairseq/data/audio/speech_to_text_joint_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from pathlib import Path from typing import Dict, List, NamedTuple, Optional import torch from fairseq.data import ConcatData...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/text_to_speech_dataset.py
fairseq/data/audio/text_to_speech_dataset.py
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory.abs from dataclasses import datacla...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/speech_to_text_dataset.py
fairseq/data/audio/speech_to_text_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import csv import logging import re from argparse import Namespace from collections import defaultdict from dataclasses import dataclass from ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/frm_text_to_speech_dataset.py
fairseq/data/audio/frm_text_to_speech_dataset.py
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory.abs import csv import logging impor...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/hubert_dataset.py
fairseq/data/audio/hubert_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import itertools import logging import os import sys from typing import Any, List, Optional, Union import numpy as np import torch import to...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/multi_modality_dataset.py
fairseq/data/audio/multi_modality_dataset.py
# Copyright (c) 2021-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import logging import math from ty...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/data_cfg.py
fairseq/data/audio/data_cfg.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from argparse import Namespace from copy import deepcopy from pathlib import Path from typing import Dict, Optional from fairs...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/__init__.py
fairseq/data/audio/__init__.py
from abc import ABC, abstractmethod from typing import Dict, Optional import importlib import os import numpy as np class AudioTransform(ABC): @classmethod @abstractmethod def from_config_dict(cls, config: Optional[Dict] = None): pass class CompositeAudioTransform(AudioTransform): def _from_...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/dataset_transforms/noisyoverlapaugment.py
fairseq/data/audio/dataset_transforms/noisyoverlapaugment.py
import numpy as np import torch from fairseq.data.audio import rand_uniform from fairseq.data.audio.dataset_transforms import ( AudioDatasetTransform, register_audio_dataset_transform, ) from fairseq.data.audio.waveform_transforms.noiseaugment import ( NoiseAugmentTransform, ) _DEFAULTS = { "rate": 0....
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/dataset_transforms/concataugment.py
fairseq/data/audio/dataset_transforms/concataugment.py
from typing import List import numpy as np from fairseq.data.audio.dataset_transforms import ( AudioDatasetTransform, register_audio_dataset_transform, ) _DEFAULTS = {"rate": 0.25, "max_tokens": 3000, "attempts": 5} @register_audio_dataset_transform("concataugment") class ConcatAugment(AudioDatasetTransform...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/dataset_transforms/__init__.py
fairseq/data/audio/dataset_transforms/__init__.py
import os from fairseq.data.audio import ( AudioTransform, CompositeAudioTransform, import_transforms, register_audio_transform, ) class AudioDatasetTransform(AudioTransform): pass AUDIO_DATASET_TRANSFORM_REGISTRY = {} AUDIO_DATASET_TRANSFORM_CLASS_NAMES = set() def get_audio_dataset_transform...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/feature_transforms/delta_deltas.py
fairseq/data/audio/feature_transforms/delta_deltas.py
import numpy as np import torch from fairseq.data.audio.feature_transforms import ( AudioFeatureTransform, register_audio_feature_transform, ) @register_audio_feature_transform("delta_deltas") class DeltaDeltas(AudioFeatureTransform): """Expand delta-deltas features from spectrum.""" @classmethod ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/feature_transforms/utterance_cmvn.py
fairseq/data/audio/feature_transforms/utterance_cmvn.py
import numpy as np from fairseq.data.audio.feature_transforms import ( AudioFeatureTransform, register_audio_feature_transform, ) @register_audio_feature_transform("utterance_cmvn") class UtteranceCMVN(AudioFeatureTransform): """Utterance-level CMVN (cepstral mean and variance normalization)""" @cla...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/feature_transforms/specaugment.py
fairseq/data/audio/feature_transforms/specaugment.py
import math import numbers from typing import Optional import numpy as np from fairseq.data.audio.feature_transforms import ( AudioFeatureTransform, register_audio_feature_transform, ) @register_audio_feature_transform("specaugment") class SpecAugmentTransform(AudioFeatureTransform): """SpecAugment (http...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/feature_transforms/__init__.py
fairseq/data/audio/feature_transforms/__init__.py
import os from fairseq.data.audio import ( AudioTransform, CompositeAudioTransform, import_transforms, register_audio_transform, ) class AudioFeatureTransform(AudioTransform): pass AUDIO_FEATURE_TRANSFORM_REGISTRY = {} AUDIO_FEATURE_TRANSFORM_CLASS_NAMES = set() def get_audio_feature_transform...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/feature_transforms/global_cmvn.py
fairseq/data/audio/feature_transforms/global_cmvn.py
import numpy as np from fairseq.data.audio.feature_transforms import ( AudioFeatureTransform, register_audio_feature_transform, ) @register_audio_feature_transform("global_cmvn") class GlobalCMVN(AudioFeatureTransform): """Global CMVN (cepstral mean and variance normalization). The global mean and var...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/waveform_transforms/__init__.py
fairseq/data/audio/waveform_transforms/__init__.py
import os from fairseq.data.audio import ( AudioTransform, CompositeAudioTransform, import_transforms, register_audio_transform, ) class AudioWaveformTransform(AudioTransform): pass AUDIO_WAVEFORM_TRANSFORM_REGISTRY = {} AUDIO_WAVEFORM_TRANSFORM_CLASS_NAMES = set() def get_audio_waveform_trans...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/audio/waveform_transforms/noiseaugment.py
fairseq/data/audio/waveform_transforms/noiseaugment.py
from pathlib import Path import numpy as np from math import ceil from fairseq.data.audio import rand_uniform from fairseq.data.audio.waveform_transforms import ( AudioWaveformTransform, register_audio_waveform_transform, ) SNR_MIN = 5.0 SNR_MAX = 15.0 RATE = 0.25 NOISE_RATE = 1.0 NOISE_LEN_MEAN = 0.2 NOISE_...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/legacy/masked_lm_dictionary.py
fairseq/data/legacy/masked_lm_dictionary.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from fairseq.data import Dictionary class MaskedLMDictionary(Dictionary): """ Dictionary for Masked Language Modelling tasks. This e...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/legacy/block_pair_dataset.py
fairseq/data/legacy/block_pair_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import numpy as np import torch from fairseq.data import FairseqDataset class BlockPairDataset(FairseqDataset): """Break a ...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/legacy/masked_lm_dataset.py
fairseq/data/legacy/masked_lm_dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math from typing import Dict, List, Tuple import numpy as np import torch from fairseq.data import Dictionary, FairseqDataset, data_ut...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/data/legacy/__init__.py
fairseq/data/legacy/__init__.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .block_pair_dataset import BlockPairDataset from .masked_lm_dataset import MaskedLMDataset from .masked_lm_dictionary import BertDictiona...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/scoring/chrf.py
fairseq/scoring/chrf.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass from fairseq.dataclass import FairseqDataclass from fairseq.scoring import BaseScorer, register_scorer @...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/scoring/meteor.py
fairseq/scoring/meteor.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import numpy as np from dataclasses import dataclass from fairseq.dataclass import FairseqDataclass from fairseq.scoring import BaseScorer, r...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/scoring/bertscore.py
fairseq/scoring/bertscore.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field import numpy as np from fairseq.dataclass import FairseqDataclass from fairseq.scoring import BaseS...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/scoring/__init__.py
fairseq/scoring/__init__.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import importlib import os from abc import ABC, abstractmethod from fairseq import registry from omegaconf import DictConfig class BaseSco...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/scoring/wer.py
fairseq/scoring/wer.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field from fairseq.dataclass import FairseqDataclass from fairseq.scoring import BaseScorer, register_scor...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/scoring/tokenizer.py
fairseq/scoring/tokenizer.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unicodedata import sacrebleu as sb from fairseq.dataclass import ChoiceEnum SACREBLEU_V2_ABOVE = int(sb.__version__[0]) >= 2 class...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
facebookresearch/fairseq
https://github.com/facebookresearch/fairseq/blob/3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99/fairseq/scoring/bleu.py
fairseq/scoring/bleu.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import ctypes import math import sys from dataclasses import dataclass, field import torch from fairseq.dataclass import FairseqDataclass fro...
python
MIT
3d262bb25690e4eb2e7d3c1309b1e9c406ca4b99
2026-01-04T14:42:59.188867Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/setup.py
setup.py
# Copyright 2018 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/build_wheel.py
build_wheel.py
# Copyright 2025 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/conftest.py
conftest.py
# Copyright 2021 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/gpu_rnn.py
jaxlib/gpu_rnn.py
# Copyright 2022 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/xla_client.py
jaxlib/xla_client.py
# Copyright 2017 The JAX Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/gpu_prng.py
jaxlib/gpu_prng.py
# Copyright 2019 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/weakref_lru_cache_test.py
jaxlib/weakref_lru_cache_test.py
# Copyright 2023 The JAX Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/lapack.py
jaxlib/lapack.py
# Copyright 2018 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/setup.py
jaxlib/setup.py
# Copyright 2018 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/gpu_solver.py
jaxlib/gpu_solver.py
# Copyright 2019 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/config_test.py
jaxlib/config_test.py
# Copyright 2024 The JAX Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/pytree_test.py
jaxlib/pytree_test.py
# Copyright 2023 The JAX Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/gpu_common_utils.py
jaxlib/gpu_common_utils.py
# Copyright 2023 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/gpu_sparse.py
jaxlib/gpu_sparse.py
# Copyright 2019 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/gpu_linalg.py
jaxlib/gpu_linalg.py
# Copyright 2021 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/plugin_support.py
jaxlib/plugin_support.py
# Copyright 2025 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/cpu_sparse.py
jaxlib/cpu_sparse.py
# Copyright 2025 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/init.py
jaxlib/init.py
# Copyright 2018 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/gpu_triton.py
jaxlib/gpu_triton.py
# Copyright 2023 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/tools/wheel_size_test.py
jaxlib/tools/wheel_size_test.py
# Copyright 2025 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/tools/build_gpu_plugin_wheel.py
jaxlib/tools/build_gpu_plugin_wheel.py
# Copyright 2023 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/tools/build_wheel.py
jaxlib/tools/build_wheel.py
# Copyright 2020 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/tools/build_utils.py
jaxlib/tools/build_utils.py
# Copyright 2023 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/tools/build_gpu_kernels_wheel.py
jaxlib/tools/build_gpu_kernels_wheel.py
# Copyright 2023 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/tools/build_mosaic_wheel.py
jaxlib/tools/build_mosaic_wheel.py
# Copyright 2025 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/triton/dialect.py
jaxlib/triton/dialect.py
# Copyright 2024 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/triton/__init__.py
jaxlib/triton/__init__.py
# Copyright 2024 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false
jax-ml/jax
https://github.com/jax-ml/jax/blob/78a4304e4d0b6422842efbccfb4f379d347633ea/jaxlib/mosaic/python/layout_defs.py
jaxlib/mosaic/python/layout_defs.py
# Copyright 2023 The JAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
python
Apache-2.0
78a4304e4d0b6422842efbccfb4f379d347633ea
2026-01-04T14:42:24.053813Z
false