index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
33,559
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/fast/mbart.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,560
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/distilbert.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,561
quantapix/qnarre
refs/heads/main
/qnarre/prep/convert/roformer.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,562
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/util/tree.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,563
quantapix/qnarre
refs/heads/main
/qnarre/models/rembert.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,564
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/t5.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,565
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/xlm.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,566
quantapix/qnarre
refs/heads/main
/qnarre/prep/convert/bert_tf2.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,567
quantapix/qnarre
refs/heads/main
/tools/triton/python/test/regression/test_performance.py
import subprocess import sys import pytest import torch import triton import triton.language as tl import triton.ops from triton.testing import get_dram_gbps, get_max_tensorcore_tflops DEVICE_NAME = {7: 'v100', 8: 'a100'}[torch.cuda.get_device_capability()[0]] ####################### # Utilities ###################...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,568
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/spread.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,569
quantapix/qnarre
refs/heads/main
/notebooks/old/src/layers.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,570
quantapix/qnarre
refs/heads/main
/qnarre/run/run_xnli.py
import os import random from dataclasses import dataclass, field import numpy as np from datasets import load_dataset, load_metric from transformers import ( AutoConfig, AutoModelForSequenceClassification, AutoTokenizer, DataCollatorWithPadding, EvalPrediction, Trainer, default_data_collat...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,571
quantapix/qnarre
refs/heads/main
/tools/triton/python/triton/ops/__init__.py
# from .conv import _conv, conv from . import blocksparse from .cross_entropy import _cross_entropy, cross_entropy from .flash_attention import attention from .matmul import _matmul, matmul __all__ = [ "blocksparse", "_cross_entropy", "cross_entropy", "_matmul", "matmul", "attention", ]
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,572
quantapix/qnarre
refs/heads/main
/qnarre/core/norm.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,573
quantapix/qnarre
refs/heads/main
/qnarre/models/mpnet.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,574
quantapix/qnarre
refs/heads/main
/qnarre/models/flash/opt.py
# Copyright (c) 2023, Tri Dao. import math import re from collections import OrderedDict import torch import torch.nn.functional as F from transformers import GPT2Config, OPTConfig def remap_state_dict_hf_opt(state_dict, config): def key_mapping_model(key): key = re.sub(r'^model.decoder.', 'transforme...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,575
quantapix/qnarre
refs/heads/main
/tools/triton/python/tutorials/06-fused-attention.py
""" Fused Attention =============== This is a Triton implementation of the Flash Attention algorithm (see: Dao et al., https://arxiv.org/pdf/2205.14135v2.pdf; Rabe and Staats https://arxiv.org/pdf/2112.05682v2.pdf) """ import pytest import torch import triton import triton.language as tl @triton.jit def _fwd_kerne...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,576
quantapix/qnarre
refs/heads/main
/qnarre/check/distributed-gpu.py
#!/usr/bin/env python # python -m torch.distributed.run --nproc_per_node 4 --nnodes 1 distributed-gpu.py # # If you get a hanging in `barrier` calls you have some network issues, you may try to debug this with: # # NCCL_DEBUG=INFO python -m torch.distributed.run --nproc_per_node 2 --nnodes 1 distributed-gpu.py import...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,577
quantapix/qnarre
refs/heads/main
/qnarre/run/ner.py
# Copyright 2021 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,578
quantapix/qnarre
refs/heads/main
/qnarre/prep/config/xlnet.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,579
quantapix/qnarre
refs/heads/main
/qnarre/base/author.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,580
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/args.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,581
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/gpt.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,582
quantapix/qnarre
refs/heads/main
/qnarre/prep/metric/seqeval.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,583
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/auto.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,584
quantapix/qnarre
refs/heads/main
/qnarre/models/distilbert.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,585
quantapix/qnarre
refs/heads/main
/qnarre/prep/config/rembert.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,586
quantapix/qnarre
refs/heads/main
/qnarre/base/proof.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,587
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/byt5.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,588
quantapix/qnarre
refs/heads/main
/qnarre/prep/convert/electra.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,589
quantapix/qnarre
refs/heads/main
/tools/triton/python/test/unit/runtime/test_subproc.py
import multiprocessing import os import shutil from collections import namedtuple import torch import triton import triton.language as tl tmpdir = ".tmp" def reset_tmp_dir(): os.environ["TRITON_CACHE_DIR"] = tmpdir if os.path.exists(tmpdir): shutil.rmtree(tmpdir) instance_descriptor = namedtuple(...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,590
quantapix/qnarre
refs/heads/main
/qnarre/models/luke.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,591
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/recs.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,592
quantapix/qnarre
refs/heads/main
/tools/triton/python/triton/runtime/autotuner.py
from __future__ import annotations import builtins import time from typing import Dict from ..testing import do_bench from .jit import KernelInterface class OutOfResources(Exception): def __init__(self, required, limit, name): self.message = f'out of resource: {name}, '\ f'Require...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,593
quantapix/qnarre
refs/heads/main
/qnarre/prep/convert/roberta.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,594
quantapix/qnarre
refs/heads/main
/qnarre/core/test/deduce.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,595
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/fast/gpt_neox.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,596
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/rag.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,597
quantapix/qnarre
refs/heads/main
/tools/standalone/test/python/smoketest.py
# RUN: %python %s | FileCheck %s from mlir_standalone.ir import * from mlir_standalone.dialects import ( builtin as builtin_d, standalone as standalone_d ) with Context(): standalone_d.register_dialect() module = Module.parse(""" %0 = arith.constant 2 : i32 %1 = standalone.foo %0 : i32 """) # CH...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,598
quantapix/qnarre
refs/heads/main
/qnarre/run/qa.py
# Copyright 2021 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,599
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/nominals.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,600
quantapix/qnarre
refs/heads/main
/qnarre/prep/config/ctrl.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,601
quantapix/qnarre
refs/heads/main
/notebooks/old/src/gpus.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,602
quantapix/qnarre
refs/heads/main
/qnarre/models/ibert.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,603
quantapix/qnarre
refs/heads/main
/qnarre/prep/dataset/xsum.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,604
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/resource.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,605
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/util/item.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,606
quantapix/qnarre
refs/heads/main
/qnarre/prep/config/electra.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,607
quantapix/qnarre
refs/heads/main
/qnarre/core/search.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,608
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/fast/gpt.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,609
quantapix/qnarre
refs/heads/main
/qnarre/core/embed.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,610
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/header.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,611
quantapix/qnarre
refs/heads/main
/qnarre/prep/dataset/orange_sum.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,612
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/meta.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,613
quantapix/qnarre
refs/heads/main
/qnarre/prep/convert/rag.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,614
quantapix/qnarre
refs/heads/main
/qnarre/models/flash/gpt.py
# Copyright (c) 2023, Tri Dao. import logging import math import re from functools import partial from collections import namedtuple, OrderedDict from collections.abc import Sequence import torch import torch.nn as nn import torch.nn.functional as F from transformers import GPT2Config from einops import rearrange ...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,615
quantapix/qnarre
refs/heads/main
/qnarre/prep/config/nanogpt.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,616
quantapix/qnarre
refs/heads/main
/qnarre/models/ctrl.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,617
quantapix/qnarre
refs/heads/main
/tools/triton/python/triton/runtime/errors.py
class OutOfResources(Exception): def __init__(self, required, limit, name): self.message = f'out of resource: {name}, '\ f'Required: {required}, '\ f'Hardware limit: {limit}' self.message += '. Reducing block sizes or `num_stages` may help.' sel...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,618
quantapix/qnarre
refs/heads/main
/setup.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,619
quantapix/qnarre
refs/heads/main
/qnarre/prep/config/bert.py
# Copyright 2023 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,620
quantapix/qnarre
refs/heads/main
/notebooks/old/src/dataset.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,621
quantapix/qnarre
refs/heads/main
/qnarre/prep/convert/byt5.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,622
quantapix/qnarre
refs/heads/main
/qnarre/run/sum.py
# Copyright 2021 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,623
quantapix/qnarre
refs/heads/main
/qnarre/core/squad.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,624
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/mboxes.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,625
quantapix/qnarre
refs/heads/main
/qnarre/prep/dataset/amazon_reviews_multi.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,626
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/fast/deberta.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,627
quantapix/qnarre
refs/heads/main
/qnarre/core/test/attend.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,628
quantapix/qnarre
refs/heads/main
/qnarre/prep/metric/squad2.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,629
quantapix/qnarre
refs/heads/main
/tools/triton/python/test/unit/runtime/test_driver.py
import sys import triton def test_is_lazy(): from importlib import reload reload(sys.modules["triton.runtime.driver"]) reload(sys.modules["triton.runtime"]) mod = sys.modules[triton.runtime.driver.__module__] assert isinstance(triton.runtime.driver, getattr(mod, "LazyProxy")) assert triton.ru...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,630
quantapix/qnarre
refs/heads/main
/notebooks/old/src/callbacks.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,631
quantapix/qnarre
refs/heads/main
/qnarre/prep/config/transfo_xl.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,632
quantapix/qnarre
refs/heads/main
/qnarre/core/forward.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,633
quantapix/qnarre
refs/heads/main
/qnarre/prep/dataset/wikitext.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,634
quantapix/qnarre
refs/heads/main
/qnarre/run/ddp2.py
import torch import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader class MyTrainDataset(Dataset): def __init__(self, size): self.size = size self.data = [(torch.rand(20), torch.rand(1)) for _ in range(size)] def __len__(self): return self.size def __get...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,635
quantapix/qnarre
refs/heads/main
/tools/triton/python/triton/compiler/code_generator.py
import ast import inspect import re import sys import warnings from typing import Any, Callable, Dict, Optional, Tuple, Type, Union from .. import language from ..language import constexpr, tensor # ideally we wouldn't need any runtime component from ..runtime import JITFunction from .errors import (CompilationError, ...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,636
quantapix/qnarre
refs/heads/main
/qnarre/run/run_benchmark.py
from transformers import HfArgumentParser, PyTorchBenchmark, PyTorchBenchmarkArguments def main(): parser = HfArgumentParser(PyTorchBenchmarkArguments) try: benchmark_args = parser.parse_args_into_dataclasses()[0] except ValueError as e: arg_error_msg = "Arg --no_{0} is no longer used, ple...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,637
quantapix/qnarre
refs/heads/main
/qnarre/models/old/bert2.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,638
quantapix/qnarre
refs/heads/main
/notebooks/gpus/run.py
#!/usr/bin/env python import os import sys import tempfile import torch import torch.distributed as dist import torch.nn as nn import torch.optim as optim import torch.multiprocessing as mp import evaluate from torch.nn.parallel import DistributedDataParallel as DDP from transformers import AutoTokenizer from transfo...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,639
quantapix/qnarre
refs/heads/main
/qnarre/base/__init__.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,640
quantapix/qnarre
refs/heads/main
/tools/standalone/python/mlir_standalone/dialects/standalone.py
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception from ._standalone_ops_gen import * from .._mlir_libs._standaloneDialects.standalone import *
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,641
quantapix/qnarre
refs/heads/main
/tools/triton/python/triton/ops/cross_entropy.py
import torch import triton import triton.language as tl def num_warps(N): if N < 2048: return 4 elif N < 8192: return 8 return 16 @triton.heuristics({'num_warps': lambda nargs: num_warps(nargs['N'])}) @triton.heuristics({'BLOCK': lambda nargs: triton.next_power_of_2(nargs['N'])}) @trito...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,642
quantapix/qnarre
refs/heads/main
/qnarre/models/t5.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,643
quantapix/qnarre
refs/heads/main
/qnarre/core/deduce.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,644
quantapix/qnarre
refs/heads/main
/qnarre/prep/convert/fsmt.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,645
quantapix/qnarre
refs/heads/main
/tools/triton/python/setup.py
import os import platform import re import shutil import subprocess import sys import sysconfig import tarfile import tempfile import urllib.request from pathlib import Path from typing import NamedTuple from setuptools import Extension, setup from setuptools.command.build_ext import build_ext # Taken from https://g...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,646
quantapix/qnarre
refs/heads/main
/qnarre/models/old/bert.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,647
quantapix/qnarre
refs/heads/main
/tools/triton/python/triton/compiler/__init__.py
from .compiler import CompiledKernel, compile from .errors import CompilationError __all__ = ["compile", "CompiledKernel", "CompilationError"]
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,648
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/command.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,649
quantapix/qnarre
refs/heads/main
/qnarre/prep/config/plbart.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,650
quantapix/qnarre
refs/heads/main
/tools/triton/python/test/unit/language/assert_helper.py
import sys import torch from torch.testing import assert_close import triton import triton.language as tl @triton.jit def kernel_device_assert(X, Y, BLOCK: tl.constexpr): x = tl.load(X + tl.arange(0, BLOCK)) tl.device_assert(x == 0, "x != 0") tl.store(Y + tl.arange(0, BLOCK), x) @triton.jit def kernel...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,651
quantapix/qnarre
refs/heads/main
/qnarre/prep/convert/pegasus.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,652
quantapix/qnarre
refs/heads/main
/qnarre/models/old/xlnet/xlnet.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import os import tensorflow as tf import modeling def _get_initializer(FLAGS): """Get variable intializer.""" if FLAGS.init == "uniform": initializer = tf.initializers.random_unifo...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,653
quantapix/qnarre
refs/heads/main
/qnarre/models/old/transfo-xl/model.py
import torch from torch import nn from torch.nn import functional as F from ... import core as qc CUDA_MAJOR = int(torch.version.cuda.split(".")[0]) CUDA_MINOR = int(torch.version.cuda.split(".")[1]) class Positional(qc.Module): pass class Positionwise(qc.Module): pass class Attention(qc.Module): h...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,654
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/justifier.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,655
quantapix/qnarre
refs/heads/main
/qnarre/base/doc/util/sphinx.py
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,656
quantapix/qnarre
refs/heads/main
/tools/triton/python/triton/ops/matmul.py
import torch import triton import triton.language as tl from .matmul_perf_model import early_config_prune, estimate_matmul_time def init_to_zero(name): return lambda nargs: nargs[name].zero_() def get_configs_io_bound(): configs = [] for num_stages in [2, 3, 4, 5, 6]: for block_m in [16, 32]: ...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,657
quantapix/qnarre
refs/heads/main
/tools/triton/python/triton/debugger/tl_lang.py
import triton from .core import ExecutionContext from .memory_map import MemoryMap from triton.debugger import torch_wrapper torch = torch_wrapper.torch def _primitive_to_tensor(x): """ Converts various Python primitive data types to PyTorch tensor. """ tensor_args = {"device": "cuda"} if isinsta...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...
33,658
quantapix/qnarre
refs/heads/main
/qnarre/prep/tokens/marian.py
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # 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 l...
{"/qnarre/prep/convert/xlnet.py": ["/qnarre/prep/config/xlnet.py", "/qnarre/models/xlnet.py"], "/qnarre/prep/convert/bert.py": ["/qnarre/prep/config/bert.py", "/qnarre/models/bert.py"], "/qnarre/base/doc/patcher.py": ["/qnarre/base/doc/log.py", "/qnarre/base/doc/base.py", "/qnarre/base/doc/resource.py", "/qnarre/base/d...