index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
33,341 | lilywise96/ChoResearch | refs/heads/master | /tree_modification.py | """
Name: tree_modification.py
Author: Lily Wise
All functions that modify or determine information about the annotation or ontology trees.
"""
from math import log10
# Calculates the specificity of every node in the tree using the information content.
#
# param: tree - dictionary; key: term, value: all parents (tr... | {"/main_runner.py": ["/main.py"], "/main.py": ["/ontology_parsing.py", "/annotation_parsing.py", "/tree_modification.py", "/apriori_algorithm.py", "/association_creation.py"]} |
33,342 | lilywise96/ChoResearch | refs/heads/master | /main_runner.py | from main import general_main
# def general_main(freq_file_ext, association_file_ext, recreate_onto_ann, recreate_freq_itemsets, tree,
# min_support, min_weighted_support, min_confidence, min_information_content, min_coverage):
trees = ['all', 'bp', 'mf', 'hp']
support = [0.02, 0.015]
weighted_suppor... | {"/main_runner.py": ["/main.py"], "/main.py": ["/ontology_parsing.py", "/annotation_parsing.py", "/tree_modification.py", "/apriori_algorithm.py", "/association_creation.py"]} |
33,343 | lilywise96/ChoResearch | refs/heads/master | /main.py | """
Filename: main.py
Author: Lily Wise
Calls other functions to find associations between genes and terms for diseases. Should calculate associations with
support 4% - 10%, coverage 4% - 10%, and confidence 20% - 50%.
"""
# BP -> BP and MF -> MF and HPO -> HPO and BP -> HPO and MF -> HPO
# Accuracy Measuring?
from ... | {"/main_runner.py": ["/main.py"], "/main.py": ["/ontology_parsing.py", "/annotation_parsing.py", "/tree_modification.py", "/apriori_algorithm.py", "/association_creation.py"]} |
33,344 | lilywise96/ChoResearch | refs/heads/master | /annotation_parsing.py | """
File: annotation_parsing.py
Author: Lily Wise
This file parses annotation files for hpo and for go.
"""
# This function parses the hpo annotation file. It pulls the gene annotation
# and terms it is associated to.
#
# param: filename - the hpo annotation file
# return: gene_term_id - a dictionary; key: gene, val... | {"/main_runner.py": ["/main.py"], "/main.py": ["/ontology_parsing.py", "/annotation_parsing.py", "/tree_modification.py", "/apriori_algorithm.py", "/association_creation.py"]} |
33,345 | lilywise96/ChoResearch | refs/heads/master | /association_creation.py | """
Filename: association_creation.py
Author: Lily Wise
This creates association and has other functions that are used to calculate the associations.
"""
# This function calculates the coverage given an association and all the itemsets.
#
# param: left_val - the left value of an association
# param: all_itemsets - a... | {"/main_runner.py": ["/main.py"], "/main.py": ["/ontology_parsing.py", "/annotation_parsing.py", "/tree_modification.py", "/apriori_algorithm.py", "/association_creation.py"]} |
33,346 | lilywise96/ChoResearch | refs/heads/master | /apriori_algorithm.py | """
Filename: apriori_algorithm.py
Author: Lily Wise
Calculates the frequent itemsets.
"""
from math import ceil, log10
from itertools import combinations, permutations
# This function calculates support of the itemset from transactions
# param transactions: All transactions in a dictionary
# param itemset: The ite... | {"/main_runner.py": ["/main.py"], "/main.py": ["/ontology_parsing.py", "/annotation_parsing.py", "/tree_modification.py", "/apriori_algorithm.py", "/association_creation.py"]} |
33,347 | lilywise96/ChoResearch | refs/heads/master | /ontology_parsing.py | """
File: ontology_parsing.py
Author: Lily Wise
This file parses ontologies for hpo files and for gene ontology files.
"""
# This function parses the hpo ontology file. It pulls the terms and
# their parents to generate a tree.
#
# param: filename - the file that holds the hpo ontology
# return: terms_parents - a di... | {"/main_runner.py": ["/main.py"], "/main.py": ["/ontology_parsing.py", "/annotation_parsing.py", "/tree_modification.py", "/apriori_algorithm.py", "/association_creation.py"]} |
33,366 | NGT-Dimka/Films | refs/heads/master | /users/views.py | from django.shortcuts import render_to_response, render, redirect
from django.http.response import HttpResponseNotAllowed
from .models import User
from django.views.generic import TemplateView
from .forms import UserForm
# Create your views here.
class NewUserView(TemplateView):
model = User
template_name = ... | {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,367 | NGT-Dimka/Films | refs/heads/master | /films/urls.py | from films.views import FilmsListView, FilmDetailView, post_film_comment
from django.conf.urls import url
urlpatterns = [
url(r'^$', FilmsListView.as_view(), name='list'),
url(r'^(?P<pk>\d+)/$', FilmDetailView.as_view(), name='detail'),
url(r'^post_comment/$', post_film_comment, name='post-comment'),
]
| {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,368 | NGT-Dimka/Films | refs/heads/master | /users/models.py | from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.db import models
from .managers import UserManager
from django.utils.translation import gettext as _
# Create your models here.
class User(AbstractBaseUser, PermissionsMixin):
username =... | {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,369 | NGT-Dimka/Films | refs/heads/master | /films/admin.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
from films.models import Film, Producer, Comment, Genres
admin.site.register(Film)
admin.site.register(Producer)
admin.site.register(Comment)
admin.site.register(Genres)
| {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,370 | NGT-Dimka/Films | refs/heads/master | /users/urls.py | from users.views import registration, NewUserView
from django.conf.urls import url
urlpatterns = [
url(r'^(?P<pk>\d+)/$', NewUserView.as_view(), name='user_profile'),
url('^new_user/$', registration, name='registration'),
]
| {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,371 | NGT-Dimka/Films | refs/heads/master | /films/views.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render_to_response
from django.views.generic import ListView, DetailView
from django.http.response import HttpResponseNotAllowed, HttpResponseBadRequest, HttpResponseRedirect
from django.contrib.contenttypes.models import Conte... | {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,372 | NGT-Dimka/Films | refs/heads/master | /films/migrations/0001_initial.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-29 05:08
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('conten... | {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,373 | NGT-Dimka/Films | refs/heads/master | /personal/urls.py | from .views import ProducerDetailView
from django.conf.urls import url
urlpatterns = [
url(r'^(?P<pk>\d+)/$', ProducerDetailView.as_view(), name='producer-detail'),
]
| {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,374 | NGT-Dimka/Films | refs/heads/master | /personal/views.py | from django.views.generic import DetailView
from films.models import Producer
# Create your views here.
class ProducerDetailView(DetailView):
model = Producer
template_name = 'producer_detail.html'
| {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,375 | NGT-Dimka/Films | refs/heads/master | /users/managers.py | from venv import create
from django.contrib.auth.base_user import BaseUserManager
from django.contrib.auth.hashers import make_password, check_password, PBKDF2PasswordHasher
class PasswordHash(PBKDF2PasswordHasher):
algorithm = 'pbkdf2_wrapped_sha1'
def encoded(self, sha1_hash, salt):
return super(P... | {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,376 | NGT-Dimka/Films | refs/heads/master | /films/models.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.http import Http404, HttpResponse
from django.contrib.contenttypes.fields import GenericRelation, GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from users.models import User
# Create ... | {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,377 | NGT-Dimka/Films | refs/heads/master | /films/forms.py | from django import forms
from films.models import Comment
class FilmComment(forms.ModelForm):
class Meta:
model = Comment
exclude = []
widgets = {
'user': forms.HiddenInput(),
'content_type': forms.HiddenInput(),
'object_id': forms.HiddenInput()
... | {"/users/views.py": ["/users/models.py"], "/films/urls.py": ["/films/views.py"], "/users/models.py": ["/users/managers.py"], "/films/admin.py": ["/films/models.py"], "/users/urls.py": ["/users/views.py"], "/films/views.py": ["/films/models.py", "/films/forms.py"], "/personal/urls.py": ["/personal/views.py"], "/personal... |
33,378 | quantapix/qnarre | refs/heads/main | /qnarre/prep/convert/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,379 | quantapix/qnarre | refs/heads/main | /qnarre/prep/convert/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,380 | quantapix/qnarre | refs/heads/main | /qnarre/try/add.py | # %%
import torch
import triton
import triton.language as tl
@triton.jit
def add_kernel(x1_ptr, x2_ptr, y_ptr, n, BLOCK: tl.constexpr):
pid = tl.program_id(axis=0)
offs = pid * BLOCK + tl.arange(0, BLOCK)
mask = offs < n
x1 = tl.load(x1_ptr + offs, mask=mask)
x2 = tl.load(x2_ptr + offs, mask=mask... | {"/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,381 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/patcher.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,382 | quantapix/qnarre | refs/heads/main | /qnarre/prep/convert/funnel.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,383 | quantapix/qnarre | refs/heads/main | /tools/triton/python/test/unit/runtime/test_cache.py | import os
import shutil
import pytest
import torch
import triton
import triton.language as tl
from triton.runtime.jit import JITFunction
tmpdir = ".tmp"
@triton.jit
def function_1(i):
i = i + 1
i = function_2(i)
return i
@triton.jit
def function_2(i):
i = i + 1
return i
@triton.jit
def kern... | {"/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,384 | quantapix/qnarre | refs/heads/main | /qnarre/prep/convert/convbert.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,385 | quantapix/qnarre | refs/heads/main | /qnarre/prep/tokens/fast/realm.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,386 | quantapix/qnarre | refs/heads/main | /qnarre/models/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,387 | quantapix/qnarre | refs/heads/main | /qnarre/models/decision_transfo.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,388 | quantapix/qnarre | refs/heads/main | /qnarre/models/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,389 | quantapix/qnarre | refs/heads/main | /qnarre/models/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,390 | quantapix/qnarre | refs/heads/main | /qnarre/prep/tokens/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,391 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc.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,392 | quantapix/qnarre | refs/heads/main | /qnarre/run/ddp.py | import argparse
import os
import tempfile
import torch
import torch.distributed as dist
import torch.nn as nn
import torch.optim as optim
from torch.nn.parallel import DistributedDataParallel as DDP
from torch.distributed._tensor import DeviceMesh
from torch.distributed.tensor.parallel import PairwiseParallel, parall... | {"/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,393 | quantapix/qnarre | refs/heads/main | /qnarre/prep/tokens/convbert.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,394 | quantapix/qnarre | refs/heads/main | /qnarre/prep/dataset/xglue.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,395 | quantapix/qnarre | refs/heads/main | /qnarre/base/base.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,396 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/ipython.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,397 | quantapix/qnarre | refs/heads/main | /qnarre/models/old/session.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,398 | quantapix/qnarre | refs/heads/main | /qnarre/prep/config/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,399 | quantapix/qnarre | refs/heads/main | /qnarre/prep/config/funnel.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,400 | quantapix/qnarre | refs/heads/main | /tools/triton/python/triton/ops/blocksparse/__init__.py | from .matmul import matmul
from .softmax import softmax
__all__ = [
"matmul",
"softmax",
]
| {"/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,401 | quantapix/qnarre | refs/heads/main | /qnarre/prep/config/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,402 | quantapix/qnarre | refs/heads/main | /qnarre/run/swag.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,403 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/analyzer.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,404 | quantapix/qnarre | refs/heads/main | /tools/triton/python/tutorials/03-matrix-multiplication.py | """
Matrix Multiplication
=====================
In this tutorial, you will write a very short high-performance FP16 matrix multiplication kernel that achieves
performance on parallel with cuBLAS.
You will specifically learn about:
* Block-level matrix multiplications.
* Multi-dimensional pointer arithmetics.
* Prog... | {"/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,405 | quantapix/qnarre | refs/heads/main | /qnarre/prep/tokens/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,406 | quantapix/qnarre | refs/heads/main | /qnarre/prep/config/gpt_neo.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,407 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/base.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,408 | quantapix/qnarre | refs/heads/main | /qnarre/prep/config/megatron.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,409 | quantapix/qnarre | refs/heads/main | /qnarre/models/flash/llama.py | # Copyright (c) 2023, Tri Dao.
import math
import json
import re
from pathlib import Path
from collections import OrderedDict
import torch
import torch.nn.functional as F
from transformers import GPT2Config, LlamaConfig
def remap_state_dict_meta_llama(state_dict, config):
def key_mapping_layers(key):
... | {"/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,410 | quantapix/qnarre | refs/heads/main | /tools/triton/python/triton/ops/matmul_perf_model.py | import heapq
import torch
import triton
import triton._C.libtriton.triton as _triton
from triton.runtime import driver
from triton.testing import get_dram_gbps, get_max_simd_tflops, get_max_tensorcore_tflops
def get_tensorcore_tflops(backend, device, num_ctas, num_warps, dtype):
''' return compute throughput in... | {"/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,411 | quantapix/qnarre | refs/heads/main | /qnarre/models/prophetnet.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,412 | quantapix/qnarre | refs/heads/main | /qnarre/models/gpt2.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,413 | quantapix/qnarre | refs/heads/main | /qnarre/core/attention.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,414 | quantapix/qnarre | refs/heads/main | /qnarre/models/old/convert.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,415 | quantapix/qnarre | refs/heads/main | /qnarre/prep/convert/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,416 | quantapix/qnarre | refs/heads/main | /qnarre/try/norm.py | """
Layer Normalization
====================
In this tutorial, you will write a high-performance layer normalization
kernel that runs faster than the PyTorch implementation.
In doing so, you will learn about:
* Implementing backward pass in Triton.
* Implementing parallel reduction in Triton.
"""
# %%
# Motivation... | {"/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,417 | quantapix/qnarre | refs/heads/main | /qnarre/core/utils.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,418 | quantapix/qnarre | refs/heads/main | /qnarre/base/named.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,419 | quantapix/qnarre | refs/heads/main | /tools/triton/python/triton/language/semantic.py | from __future__ import annotations # remove after python 3.11
from functools import wraps
from typing import List, Optional, Sequence, Tuple, TypeVar
from . import core as tl
from triton._C.libtriton.triton import ir
T = TypeVar('T')
# Create custom exception that prints message "hello"
class IncompatibleTypeErr... | {"/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,420 | quantapix/qnarre | refs/heads/main | /qnarre/prep/tokens/dpr.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,421 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/sanitizer.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,422 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/junk.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,423 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/reader.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,424 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/context.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,425 | quantapix/qnarre | refs/heads/main | /qnarre/prep/dataset/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,426 | quantapix/qnarre | refs/heads/main | /qnarre/prep/tokens/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,427 | quantapix/qnarre | refs/heads/main | /qnarre/prep/metric/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,428 | quantapix/qnarre | refs/heads/main | /tools/triton/python/triton/language/extra/__init__.py | from . import cuda
__all__ = ['cuda']
| {"/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,429 | quantapix/qnarre | refs/heads/main | /qnarre/core/output.py | from dataclasses import fields, dataclass
class Output(dict):
def __init__(self, *xs, **kw):
n = len(xs)
if n > 0:
x0 = xs[0]
if isinstance(x0, dict):
x0.update(kw)
kw = x0
n = 0
else:
try:
... | {"/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,430 | quantapix/qnarre | refs/heads/main | /qnarre/try/fused_softmax.py | import torch
from apex._autocast_utils import _cast_if_autocast_enabled
from apex.transformer.enums import AttnMaskType
from fused_softmax_lib import scaled_masked_softmax_forward, scaled_masked_softmax_backward
from fused_softmax_lib import scaled_masked_softmax_get_batch_per_block
from fused_softmax_lib import scal... | {"/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,431 | quantapix/qnarre | refs/heads/main | /qnarre/prep/convert/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,432 | quantapix/qnarre | refs/heads/main | /qnarre/models/llama.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,433 | quantapix/qnarre | refs/heads/main | /tools/triton/python/triton/debugger/debugger.py | import itertools
import random
from typing import Tuple
import triton
import triton.language as tl
from .core import ExecutionContext
from .memory_map import MemoryMap
from .tl_lang import (TritonLangProxy, WrappedTensor, _primitive_to_tensor,
debugger_constexpr)
from triton.debugger import torch... | {"/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,434 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/log.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,435 | quantapix/qnarre | refs/heads/main | /tools/triton/python/test/regression/test_functional_regressions.py | import numpy as np
import torch
from numpy.random import RandomState
import triton
import triton.language as tl
def test_chained_matmul():
# Regression test for issue #1601
def chained_matmul_reference(a, b, c):
intermediate = torch.einsum('MK,NK->MN', a, b)
return torch.einsum('MN,NK->MK', i... | {"/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,436 | quantapix/qnarre | refs/heads/main | /qnarre/prep/convert/reformer.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,437 | quantapix/qnarre | refs/heads/main | /qnarre/prep/tokens/perceiver.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,438 | quantapix/qnarre | refs/heads/main | /tools/triton/python/triton/debugger/core.py | from typing import Tuple
import dataclasses
@dataclasses.dataclass
class ExecutionContext:
program_id: Tuple[int]
program_size: Tuple[int]
| {"/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,439 | quantapix/qnarre | refs/heads/main | /qnarre/core/modeling_utils.py | import os
import re
from contextlib import contextmanager
from dataclasses import dataclass
from functools import partial
import psutil
import torch
from torch import nn
from torch.nn import CrossEntropyLoss
from requests import HTTPError
from .activations import get_activation
from .configuration_utils import Pretr... | {"/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,440 | quantapix/qnarre | refs/heads/main | /tools/triton/python/test/unit/runtime/test_launch.py | import gc
# import importlib
# import os
# import sys
# import tempfile
# import textwrap
# import time
import tracemalloc
import torch
import triton
import triton.language as tl
# from typing import Tuple
def test_memory_leak() -> None:
@triton.jit
def kernel(in_ptr0, out_ptr0, xnumel, XBLOCK: tl.constex... | {"/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,441 | quantapix/qnarre | refs/heads/main | /qnarre/tokens/utils.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,442 | quantapix/qnarre | refs/heads/main | /tools/triton/python/test/unit/debugger/test_debugger.py | import random
import torch
import triton
import triton.language as tl
from triton.debugger.debugger import program_ids_from_grid
def test_addition():
@triton.jit(interpret=True)
def add_kernel(
x_ptr,
y_ptr,
output_ptr,
n_elements,
BLOCK_SIZE: tl.constexpr,
):
... | {"/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,443 | quantapix/qnarre | refs/heads/main | /qnarre/prep/convert/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,444 | quantapix/qnarre | refs/heads/main | /tools/triton/python/triton/language/__init__.py | """isort:skip_file"""
# Import order is significant here.
from . import math
from . import extra
from .standard import (
cdiv,
sigmoid,
softmax,
ravel,
swizzle2d,
zeros,
zeros_like,
)
from .core import (
abs,
advance,
arange,
argmin,
argmax,
atomic_add,
atomic_an... | {"/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,445 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/contain.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,446 | quantapix/qnarre | refs/heads/main | /qnarre/prep/tokens/fast/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,447 | quantapix/qnarre | refs/heads/main | /tools/triton/python/triton/language/core.py | from __future__ import annotations
from contextlib import contextmanager
from enum import Enum
from functools import wraps
from typing import Callable, List, Sequence, TypeVar
import triton
from . import semantic
from triton._C.libtriton.triton import ir
T = TypeVar('T')
TRITON_MAX_TENSOR_NUMEL = 131072
TRITON_BUI... | {"/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,448 | quantapix/qnarre | refs/heads/main | /qnarre/models/megatron.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,449 | quantapix/qnarre | refs/heads/main | /qnarre/models/fnet.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,450 | quantapix/qnarre | refs/heads/main | /qnarre/core/flash.py | import math
import torch
import triton
import triton.language as tl
import flash_attn_cuda
import torch.nn as nn
import torch.nn.functional as F
from einops import rearrange, repeat
from flash_attn import flash_attn_triton
from flash_attn.flash_attn_interface import flash_attn_unpadded_qkvpacked_func
from flash_attn.b... | {"/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,451 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/record.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,452 | quantapix/qnarre | refs/heads/main | /qnarre/base/doc/dispatch.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,453 | quantapix/qnarre | refs/heads/main | /qnarre/models/big_bird.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,454 | quantapix/qnarre | refs/heads/main | /tools/triton/python/test/unit/language/print_helper.py | import sys
import torch
from torch.testing import assert_close
import triton
import triton.language as tl
@triton.jit
def kernel_device_print(X, Y, BLOCK: tl.constexpr):
x = tl.load(X + tl.arange(0, BLOCK))
tl.device_print("", x)
tl.store(Y + tl.arange(0, BLOCK), x)
@triton.jit
def kernel_print(X, Y, ... | {"/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,455 | quantapix/qnarre | refs/heads/main | /qnarre/prep/feature/segformer.py | import numpy as np
from PIL import Image
from ...feature_extraction_utils import BatchFeature, FeatureExtractionMixin
from ...image_utils import (
IMAGENET_DEFAULT_MEAN,
IMAGENET_DEFAULT_STD,
ImageFeatureExtractionMixin,
ImageInput,
is_torch_tensor,
)
from ...utils import logging
logger = logging... | {"/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,456 | quantapix/qnarre | refs/heads/main | /qnarre/prep/dataset/samsum.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,457 | quantapix/qnarre | refs/heads/main | /tools/triton/python/triton/runtime/jit.py | from __future__ import annotations, division
import ast
import functools
import hashlib
import inspect
import os
import subprocess
import textwrap
from collections import defaultdict, namedtuple
from typing import Callable, Generic, Iterable, Optional, TypeVar, Union, cast, overload
import triton
def get_cuda_strea... | {"/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,458 | quantapix/qnarre | refs/heads/main | /qnarre/prep/tokens/fast/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.