text stringlengths 5 22M | id stringlengths 12 177 | metadata dict | __index_level_0__ int64 0 1.37k |
|---|---|---|---|
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="file-submodule" format="2">
<advance width="1200"/>
<unicode hex="EAEC"/>
<note>
file-submodule
</note>
<outline>
<contour>
<point x="104" y="834" type="line"/>
<point x="184" y="834" type="line"/>
<point x="184" y="502" type="line"/>
... | cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/file-submodule.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/file-submodule.glif",
"repo_id": "cascadia-code",
"token_count": 1201
} | 839 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="gear" format="2">
<advance width="1200"/>
<unicode hex="EAF8"/>
<note>
gear
</note>
<outline>
<contour>
<point x="751" y="993" type="line"/>
<point x="914" y="1100" type="line"/>
<point x="981" y="1033" type="line"/>
<point x="875" ... | cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/gear.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/gear.glif",
"repo_id": "cascadia-code",
"token_count": 1601
} | 840 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="grabber" format="2">
<advance width="1200"/>
<unicode hex="EB02"/>
<note>
grabber
</note>
<outline>
<contour>
<point x="1180" y="792" type="line"/>
<point x="1180" y="876" type="line"/>
<point x="20" y="876" type="line"/>
<point x="... | cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/grabber.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/grabber.glif",
"repo_id": "cascadia-code",
"token_count": 277
} | 841 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="megaphone" format="2">
<advance width="1200"/>
<unicode hex="EB1E"/>
<note>
megaphone
</note>
<outline>
<contour>
<point x="20" y="788" type="line"/>
<point x="20" y="621" type="line"/>
<point x="57" y="575" type="line"/>
<point x="... | cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/megaphone.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/megaphone.glif",
"repo_id": "cascadia-code",
"token_count": 666
} | 842 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="notebook" format="2">
<advance width="1200"/>
<unicode hex="EBAF"/>
<note>
notebook
</note>
<outline>
<contour>
<point x="20" y="175" type="line"/>
<point x="106" y="85" type="line"/>
<point x="913" y="85" type="line"/>
<point x="10... | cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/notebook.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/notebook.glif",
"repo_id": "cascadia-code",
"token_count": 950
} | 843 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="play" format="2">
<advance width="1200"/>
<unicode hex="EB2C"/>
<note>
play
</note>
<outline>
<contour>
<point x="1142" y="754" type="line"/>
<point x="146" y="1420" type="line"/>
<point x="58" y="1373" type="line"/>
<point x="58" y... | cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/play.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/play.glif",
"repo_id": "cascadia-code",
"token_count": 294
} | 844 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="regex" format="2">
<advance width="1200"/>
<unicode hex="EB38"/>
<note>
regex
</note>
<outline>
<contour>
<point x="793" y="986" type="line"/>
<point x="546" y="1135" type="line"/>
<point x="499" y="1053" type="line"/>
<point x="747... | cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/regex.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/regex.glif",
"repo_id": "cascadia-code",
"token_count": 566
} | 845 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="stop-circle" format="2">
<advance width="1200"/>
<unicode hex="EBA5"/>
<note>
stop-circle
</note>
<outline>
<contour>
<point x="443" y="545" type="line"/>
<point x="778" y="545" type="line"/>
<point x="778" y="880" type="line"/>
<po... | cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/stop-circle.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/stop-circle.glif",
"repo_id": "cascadia-code",
"token_count": 1047
} | 846 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="triangle-right" format="2">
<advance width="1200"/>
<unicode hex="EB70"/>
<note>
triangle-right
</note>
<outline>
<contour>
<point x="889" y="661" type="line"/>
<point x="889" y="744" type="line"/>
<point x="363" y="1290" type="line"/>
... | cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/triangle-right.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/codicon.ufo/glyphs/triangle-right.glif",
"repo_id": "cascadia-code",
"token_count": 220
} | 847 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Kdenlive" format="2">
<advance width="1200"/>
<unicode hex="F33C"/>
<note>
Kdenlive
</note>
<outline>
<contour>
<point x="598" y="1005" type="line"/>
<point x="598" y="275" type="line"/>
<point x="625" y="275" type="line"/>
<point x... | cascadia-code/sources/nerdfonts/full/processed/font-logos.ufo/glyphs/K_denlive.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/font-logos.ufo/glyphs/K_denlive.glif",
"repo_id": "cascadia-code",
"token_count": 1409
} | 848 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="Neovim" format="2">
<advance width="1200"/>
<unicode hex="F36F"/>
<note>
Neovim
</note>
<outline>
<contour>
<point x="97" y="1201" type="line"/>
<point x="882" y="3" type="line"/>
<point x="1101" y="225" type="line"/>
<point x="316"... | cascadia-code/sources/nerdfonts/full/processed/font-logos.ufo/glyphs/N_eovim.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/font-logos.ufo/glyphs/N_eovim.glif",
"repo_id": "cascadia-code",
"token_count": 419
} | 849 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="dot" format="2">
<advance width="1200"/>
<unicode hex="F4C3"/>
<note>
dot
</note>
<outline>
<contour>
<point x="388" y="498"/>
<point x="521" y="420"/>
<point x="679" y="420"/>
<point x="812" y="498"/>
<point x="890" y="631"/>... | cascadia-code/sources/nerdfonts/full/processed/octicons.ufo/glyphs/dot.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/octicons.ufo/glyphs/dot.glif",
"repo_id": "cascadia-code",
"token_count": 517
} | 850 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="shield-x" format="2">
<advance width="1200"/>
<unicode hex="F513"/>
<note>
shield-x
</note>
<outline>
<contour>
<point x="623" y="1357"/>
<point x="577" y="1357"/>
<point x="556" y="1350" type="qcurve" smooth="yes"/>
<point x="121" ... | cascadia-code/sources/nerdfonts/full/processed/octicons.ufo/glyphs/shield-x.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/octicons.ufo/glyphs/shield-x.glif",
"repo_id": "cascadia-code",
"token_count": 2175
} | 851 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="telescope" format="2">
<advance width="1200"/>
<unicode hex="F46B"/>
<note>
telescope
</note>
<outline>
<contour>
<point x="1041" y="1256"/>
<point x="981" y="1292"/>
<point x="945" y="1292" type="qcurve" smooth="yes"/>
<point x="90... | cascadia-code/sources/nerdfonts/full/processed/octicons.ufo/glyphs/telescope.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/octicons.ufo/glyphs/telescope.glif",
"repo_id": "cascadia-code",
"token_count": 2364
} | 852 |
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.schriftgestaltung.DisplayStrings</key>
<array>
<string>/smiley</string>
</array>
<key>com.schriftgestaltung.appVersi... | cascadia-code/sources/nerdfonts/full/processed/octicons.ufo/lib.plist/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/octicons.ufo/lib.plist",
"repo_id": "cascadia-code",
"token_count": 13645
} | 853 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="i_seti_karma" format="2">
<advance width="1200"/>
<unicode hex="E622"/>
<note>
i_seti_karma
</note>
<outline>
<contour>
<point x="420" y="1412" type="line"/>
<point x="29" y="1412" type="line"/>
<point x="29" y="1020" type="line"/>
... | cascadia-code/sources/nerdfonts/full/processed/original-source.ufo/glyphs/i_seti_karma.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/original-source.ufo/glyphs/i_seti_karma.glif",
"repo_id": "cascadia-code",
"token_count": 490
} | 854 |
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ascender</key>
<integer>1755</integer>
<key>capHeight</key>
<integer>0</integer>
<key>copyright</key>
<string>Weather ... | cascadia-code/sources/nerdfonts/full/processed/weathericons-regular-webfont.ufo/fontinfo.plist/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/weathericons-regular-webfont.ufo/fontinfo.plist",
"repo_id": "cascadia-code",
"token_count": 1244
} | 855 |
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="uniF0C6" format="2">
<advance width="1200"/>
<unicode hex="E3BE"/>
<note>
uniF0C6
</note>
<outline>
<contour>
<point x="228" y="704"/>
<point x="215" y="691"/>
<point x="215" y="673"/>
<point x="228" y="660"/>
<point x="238" y... | cascadia-code/sources/nerdfonts/full/processed/weathericons-regular-webfont.ufo/glyphs/uniF_0C_6.glif/0 | {
"file_path": "cascadia-code/sources/nerdfonts/full/processed/weathericons-regular-webfont.ufo/glyphs/uniF_0C_6.glif",
"repo_id": "cascadia-code",
"token_count": 3861
} | 856 |
[](https://github.com/microsoft/causica/actions/workflows/ci-build.yml)
[](https://vscode.dev/... | causica/README.md/0 | {
"file_path": "causica/README.md",
"repo_id": "causica",
"token_count": 1997
} | 857 |
import torch
from scotch.sdes.sdes_core import SDE
class YeastGlycolysisSDE(SDE):
"""Implementation of yeast glycolysis SDE (Daniels & Nemenman 2015, Bellot et al. 2022); see paper for more details.
Attributes:
noise_type: type of SDE noise, required for BaseSDE; always "diagonal" for glycolysis
... | causica/research_experiments/scotch/src/scotch/dataset_generation/example_sdes/yeast_glycolysis.py/0 | {
"file_path": "causica/research_experiments/scotch/src/scotch/dataset_generation/example_sdes/yeast_glycolysis.py",
"repo_id": "causica",
"token_count": 1721
} | 858 |
"""This implements the abstract classes for the drift and diffusion coefficients used in SCOTCH"""
from abc import ABC, abstractmethod
from torch import Tensor, nn
class TrajectoryGraphEncoder(ABC, nn.Module):
@abstractmethod
def forward(self, trajectories: Tensor, graphs: Tensor) -> Tensor:
"""Encod... | causica/research_experiments/scotch/src/scotch/sdes/sde_modules.py/0 | {
"file_path": "causica/research_experiments/scotch/src/scotch/sdes/sde_modules.py",
"repo_id": "causica",
"token_count": 819
} | 859 |
"""
A module to load data from the standard directory structure (i.e. the one followed by csuite)
"""
import json
import logging
import os
from collections import defaultdict
from dataclasses import dataclass
from enum import Enum
from functools import partial
from typing import Any, Counter, Optional
import fsspec
im... | causica/src/causica/datasets/causica_dataset_format/load.py/0 | {
"file_path": "causica/src/causica/datasets/causica_dataset_format/load.py",
"repo_id": "causica",
"token_count": 5495
} | 860 |
from typing import Optional
import torch
import torch.distributions as td
class ExpertGraphContainer(torch.nn.Module):
def __init__(self, dag: torch.Tensor, mask: torch.Tensor, confidence: float, scale: float) -> None:
"""Container holding an "experts" prior belief about the underlying causal DAG.
... | causica/src/causica/distributions/adjacency/gibbs_dag_prior.py/0 | {
"file_path": "causica/src/causica/distributions/adjacency/gibbs_dag_prior.py",
"repo_id": "causica",
"token_count": 1686
} | 861 |
from causica.distributions.transforms.base import SequentialTransformModule, TransformModule, TypedTransform
from causica.distributions.transforms.joint import JointTransform, JointTransformModule
from causica.distributions.transforms.tensor_to_tensordict import TensorToTensorDictTransform, shapes_to_slices
| causica/src/causica/distributions/transforms/__init__.py/0 | {
"file_path": "causica/src/causica/distributions/transforms/__init__.py",
"repo_id": "causica",
"token_count": 84
} | 862 |
import torch
import torch.distributions as td
from torch.distributions.constraints import Constraint
from causica.distributions.adjacency import AdjacencyDistribution
from causica.distributions.distribution_module import DistributionModule
from causica.distributions.noise.joint import JointNoiseModule
from causica.fun... | causica/src/causica/sem/sem_distribution.py/0 | {
"file_path": "causica/src/causica/sem/sem_distribution.py",
"repo_id": "causica",
"token_count": 1569
} | 863 |
"""Module with generic Adjacency Distribution tests."""
from typing import Type
import numpy as np
import pytest
import torch
from causica.distributions.adjacency import (
AdjacencyDistribution,
ConstrainedAdjacencyDistribution,
ENCOAdjacencyDistribution,
ThreeWayAdjacencyDistribution,
)
def _distri... | causica/test/distributions/adjacency/test_adjacency_distributions.py/0 | {
"file_path": "causica/test/distributions/adjacency/test_adjacency_distributions.py",
"repo_id": "causica",
"token_count": 2215
} | 864 |
import gc
from causica.distributions.transforms.base import TypedTransform
class _StrIntTransform(TypedTransform[str, int]):
"""Dummy transform for testing types."""
def _call(self, x: str) -> int:
return int(x)
def _inverse(self, y: int) -> str:
return str(y)
def test_typed_transform... | causica/test/distributions/transforms/test_base.py/0 | {
"file_path": "causica/test/distributions/transforms/test_base.py",
"repo_id": "causica",
"token_count": 412
} | 865 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from typing import Tuple, Union
import torch
import torch.nn as nn
from cliffordlayers.nn.functional.utils import _w_assert
def get_1d_clifford_kernel(
w: Union[tuple, list, torch.Tensor, nn.Parameter, nn.ParameterList], g: torch.Tensor
)... | cliffordlayers/cliffordlayers/cliffordkernels.py/0 | {
"file_path": "cliffordlayers/cliffordlayers/cliffordkernels.py",
"repo_id": "cliffordlayers",
"token_count": 5870
} | 866 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# This script generates the research page from the research.yml file.
import yaml
header = """
<!-- This is automatically generated from research.yml. Do not edit this file directly. -->
# Research
Following is a list of research papers that h... | cliffordlayers/docs/generate_research.py/0 | {
"file_path": "cliffordlayers/docs/generate_research.py",
"repo_id": "cliffordlayers",
"token_count": 617
} | 867 |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import torch
from cliffordlayers.models.gca.twod import CliffordG3ResNet2d, CliffordG3UNet2d
def test_gca_resnet():
x = torch.randn(8, 4, 128, 128, 3)
in_channels = 4
out_channels = 1
model = CliffordG3ResNet2d(
num_blo... | cliffordlayers/tests/test_GCAFluidNet2d.py/0 | {
"file_path": "cliffordlayers/tests/test_GCAFluidNet2d.py",
"repo_id": "cliffordlayers",
"token_count": 899
} | 868 |
#!/usr/bin/env/python
"""
Usage:
evaluate.py --dataset zinc|qm9|cep
Options:
-h --help Show this screen.
--dataset NAME Dataset name: zinc, qm9, cep
"""
import utils
from utils import dataset_info
import numpy as np
from docopt import docopt
if __name__ == '__main__':
args =... | constrained-graph-variational-autoencoder/evaluate.py/0 | {
"file_path": "constrained-graph-variational-autoencoder/evaluate.py",
"repo_id": "constrained-graph-variational-autoencoder",
"token_count": 1192
} | 869 |
# cookiecutter-spacy-fastapi
Python cookiecutter API for quick deployments of spaCy models with FastAPI
## Azure Search
The API interface is compatible with Azure Search Cognitive Skills.
For instructions on adding your API as a Custom Cognitive Skill in Azure Search see:
https://docs.microsoft.com/en-us/azure/searc... | cookiecutter-spacy-fastapi/README.md/0 | {
"file_path": "cookiecutter-spacy-fastapi/README.md",
"repo_id": "cookiecutter-spacy-fastapi",
"token_count": 680
} | 870 |
import uvicorn
from app.api import app
if __name__ == '__main__':
uvicorn.run(app, host='0.0.0.0', port=8080, log_level='info') | cookiecutter-spacy-fastapi/{{cookiecutter.project_slug}}/main.py/0 | {
"file_path": "cookiecutter-spacy-fastapi/{{cookiecutter.project_slug}}/main.py",
"repo_id": "cookiecutter-spacy-fastapi",
"token_count": 56
} | 871 |
var Migrations = artifacts.require("./Migrations.sol")
module.exports = function (deployer) {
deployer.deploy(Migrations)
}
| 0xDeCA10B/demo/client/migrations/1_initial_migration.js/0 | {
"file_path": "0xDeCA10B/demo/client/migrations/1_initial_migration.js",
"repo_id": "0xDeCA10B",
"token_count": 47
} | 0 |
import InputLabel from '@material-ui/core/InputLabel'
import MenuItem from '@material-ui/core/MenuItem'
import Select from '@material-ui/core/Select'
import Tooltip from '@material-ui/core/Tooltip'
import React from 'react'
export function checkStorages(storages) {
return Promise.all(Object.entries(storages).map(([ke... | 0xDeCA10B/demo/client/src/components/storageSelector.js/0 | {
"file_path": "0xDeCA10B/demo/client/src/components/storageSelector.js",
"repo_id": "0xDeCA10B",
"token_count": 648
} | 1 |
/**
* Information about a shared model.
*/
export class ModelInformation {
id?: number
name: string
address: string
description: string
modelType: string
encoder: string
accuracy?: number
constructor(obj: any) {
this.id = obj.id
this.name = obj.name
this.address = obj.address
this.modelType = obj.mod... | 0xDeCA10B/demo/client/src/storage/data-store.ts/0 | {
"file_path": "0xDeCA10B/demo/client/src/storage/data-store.ts",
"repo_id": "0xDeCA10B",
"token_count": 547
} | 2 |
const fs = require('fs')
const CollaborativeTrainer64 = artifacts.require("./CollaborativeTrainer64")
const DataHandler64 = artifacts.require("./data/DataHandler64")
const NearestCentroidClassifier = artifacts.require("./classification/NearestCentroidClassifier")
const Stakeable64 = artifacts.require("./incentive/Stak... | 0xDeCA10B/demo/client/test/contracts/vpa-classifier.js/0 | {
"file_path": "0xDeCA10B/demo/client/test/contracts/vpa-classifier.js",
"repo_id": "0xDeCA10B",
"token_count": 2024
} | 3 |
# Sharing Updatable Models (SUM) on Blockchain Simulation
(formerly Decentralized & Collaborative AI on Blockchain Simulation)
[](https://github.com/microsoft/0xDeCA10B/actions/workflows/simulation-te... | 0xDeCA10B/simulation/README.md/0 | {
"file_path": "0xDeCA10B/simulation/README.md",
"repo_id": "0xDeCA10B",
"token_count": 1692
} | 4 |
import unittest
import numpy as np
from injector import Injector
from decai.simulation.contract.classification.classifier import Classifier
from decai.simulation.contract.classification.ncc_module import NearestCentroidClassifierModule
from decai.simulation.logging_module import LoggingModule
class TestNearestCentr... | 0xDeCA10B/simulation/decai/simulation/contract/classification/tests/test_ncc.py/0 | {
"file_path": "0xDeCA10B/simulation/decai/simulation/contract/classification/tests/test_ncc.py",
"repo_id": "0xDeCA10B",
"token_count": 939
} | 5 |
from typing import List, Optional, Tuple
import numpy as np
from injector import singleton
FeatureIndexMapping = List[int]
@singleton
class FeatureIndexMapper:
"""
Helps with mapping sparse data matrices to compact dense ones
since some classifiers don't work well with sparse data:
* SGDClassifier t... | 0xDeCA10B/simulation/decai/simulation/data/featuremapping/feature_index_mapper.py/0 | {
"file_path": "0xDeCA10B/simulation/decai/simulation/data/featuremapping/feature_index_mapper.py",
"repo_id": "0xDeCA10B",
"token_count": 922
} | 6 |
import unittest
from typing import cast
from injector import Injector
from decai.simulation.data.data_loader import DataLoader
from decai.simulation.data.featuremapping.hashing.murmurhash3 import MurmurHash3Module
from decai.simulation.data.featuremapping.hashing.token_hash import TokenHash
from decai.simulation.data... | 0xDeCA10B/simulation/decai/simulation/data/tests/test_offensive_data_loader.py/0 | {
"file_path": "0xDeCA10B/simulation/decai/simulation/data/tests/test_offensive_data_loader.py",
"repo_id": "0xDeCA10B",
"token_count": 857
} | 7 |
protocolVersion: 2
name: job-config-1
type: job
prerequisites:
- protocolVersion: 2
name: pytorch_example
type: dockerimage
uri: openpai/pai.example.pytorch
taskRoles:
train:
instances: 1
completion:
minFailedInstances: 1
minSucceededInstances: 1
dockerImage: pytorch_example
... | AI-System/Labs/AdvancedLabs/Lab6/config/job-config-1.yaml/0 | {
"file_path": "AI-System/Labs/AdvancedLabs/Lab6/config/job-config-1.yaml",
"repo_id": "AI-System",
"token_count": 270
} | 8 |
# MIT License
# Copyright (c) Microsoft Corporation.
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, mer... | AI-System/Labs/AdvancedLabs/Lab8/nas/model.py/0 | {
"file_path": "AI-System/Labs/AdvancedLabs/Lab8/nas/model.py",
"repo_id": "AI-System",
"token_count": 3302
} | 9 |
# Labs
The labs consist of basic labs and advanced labs. In this session, we designed experimental courses from the perspective of system research.
Encourage students to implement and optimize system modules by operating and applying mainstream and latest frameworks, platforms and tools to improve their ability to s... | AI-System/Labs/README.md/0 | {
"file_path": "AI-System/Labs/README.md",
"repo_id": "AI-System",
"token_count": 691
} | 10 |
# AI-System
[简体中文](./README.md)
This is an online AI System Course to help students learn the whole stack of systems that support AI, and practice them in the real projects. In this course, we will use terms **AI-System** and **System for AI** alternately.
This course is one of the AI-related course in [微软人工智能教育与共建... | AI-System/README_en.md/0 | {
"file_path": "AI-System/README_en.md",
"repo_id": "AI-System",
"token_count": 2485
} | 11 |
<!--Copyright © Microsoft Corporation. All rights reserved.
适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可-->
# 12.2 人工智能训练安全与隐私
- [12.2 人工智能训练安全与隐私](#122-人工智能训练安全与隐私)
- [12.2.1 训练时安全](#1221-训练时安全)
- [12.2.2 训练时隐私](#1222-训练时隐私)
- [12.2.3 联邦学习](#1223-联邦学习)
- [小结与讨论](#小结与讨论)
- [参... | AI-System/Textbook/第12章-人工智能安全与隐私/12.2-人工智能训练安全与隐私.md/0 | {
"file_path": "AI-System/Textbook/第12章-人工智能安全与隐私/12.2-人工智能训练安全与隐私.md",
"repo_id": "AI-System",
"token_count": 13715
} | 12 |
<!--Copyright © Microsoft Corporation. All rights reserved.
适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可-->
## 2.2 神经网络的训练
本小节主要围绕神经网络的训练的训练流程,损失函数,梯度下降和反向传播展开。
- [2.2 神经网络的训练](#22-神经网络的训练)
- [2.2.1 基本训练流程](#221-基本训练流程)
- [前提条件](#前提条件)
- [步骤](#步骤)
- [2.2.2 损失函数](#222-损失函... | AI-System/Textbook/第2章-神经网络基础/2.2-神经网络的训练.md/0 | {
"file_path": "AI-System/Textbook/第2章-神经网络基础/2.2-神经网络的训练.md",
"repo_id": "AI-System",
"token_count": 8766
} | 13 |
<!--Copyright © Microsoft Corporation. All rights reserved.
适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可-->
# 5.2 计算图优化
- [5.2 计算图优化](#52-计算图优化)
- [5.2.1 算术表达式化简](#521-算术表达式化简)
- [5.2.2 公共子表达式消除](#522-公共子表达式消除)
- [5.2.3 常数传播](#523-常数传播)
- [5.2.4 矩阵乘自动融合](#524-矩阵乘自动融合)
- [5.2.... | AI-System/Textbook/第5章-深度学习框架的编译与优化/5.2-计算图优化.md/0 | {
"file_path": "AI-System/Textbook/第5章-深度学习框架的编译与优化/5.2-计算图优化.md",
"repo_id": "AI-System",
"token_count": 7069
} | 14 |
<!--Copyright © Microsoft Corporation. All rights reserved.
适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可-->
# 6.3 深度学习并行训练同步方式
- [6.3 深度学习并行训练同步方式](#63-深度学习并行训练同步方式)
- [6.3.1 同步并行](#631-同步并行)
- [6.3.2 异步并行](#632-异步并行)
- [6.3.2 半同步并行](#632-半同步并行)
- [小结与讨论](#小结与讨论)
- [参考文献](#... | AI-System/Textbook/第6章-分布式训练算法与系统/6.3-深度学习并行训练同步方式.md/0 | {
"file_path": "AI-System/Textbook/第6章-分布式训练算法与系统/6.3-深度学习并行训练同步方式.md",
"repo_id": "AI-System",
"token_count": 2534
} | 15 |
#!/usr/bin/python
import azureml.core
from azureml.core import Workspace
from dotenv import set_key, get_key, find_dotenv
from pathlib import Path
from AIHelpers.utilities import get_auth
import sys, getopt
def main(argv):
try:
opts, args = getopt.getopt(argv,"hs:rg:wn:wr:",["subscription_id=","resource_gro... | AI/.ci/scripts/aml_creation.py/0 | {
"file_path": "AI/.ci/scripts/aml_creation.py",
"repo_id": "AI",
"token_count": 720
} | 16 |
parameters:
Agent: Hosted Ubuntu 1604
Demands: "python3"
jobTimeoutInMinutes: 180
jobDisplayName: 'defaultDisplayName'
TridentWorkloadTypeShort: #
DeployLocation: #
DefaultWorkingDirectory: $(System.DefaultWorkingDirectory)
Template: ai-architecture-template.yml
ProjectLocation: "notebooks/"
Pytho... | AI/.ci/stages/deploy_notebooks_stages_v4.yml/0 | {
"file_path": "AI/.ci/stages/deploy_notebooks_stages_v4.yml",
"repo_id": "AI",
"token_count": 2038
} | 17 |
parameters:
template: ''
azureSubscription: 'x'
azure_subscription: 'x'
azureresourcegroup: 'x'
workspacename: 'aiarchtemplate'
azureregion: 'westus'
aksimagename: 'myimage'
aks_name: "akscluster"
aks_service_name: "aksservice"
location: "" #Root Dir of Project
python_path: "" #Root Dir of Pytho... | AI/.ci/steps/deploy_notebook_steps_v5.yml/0 | {
"file_path": "AI/.ci/steps/deploy_notebook_steps_v5.yml",
"repo_id": "AI",
"token_count": 797
} | 18 |
variables:
TridentWorkloadTypeShort: aimlrts
DeployLocation: westus
ProjectLocation: "notebooks/"
PythonPath: "."
Template: az-ml-realtime-score.yml
| AI/.ci/vars/az-ml-realtime-score.yml/0 | {
"file_path": "AI/.ci/vars/az-ml-realtime-score.yml",
"repo_id": "AI",
"token_count": 53
} | 19 |
# Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull... | AI/CONTRIBUTING.md/0 | {
"file_path": "AI/CONTRIBUTING.md",
"repo_id": "AI",
"token_count": 213
} | 20 |
from os.path import join
import sys
sys.path += ['../']
import argparse
import glob
import json
import logging
import os
import random
import numpy as np
import torch
torch.multiprocessing.set_sharing_strategy('file_system')
from torch.utils.data import DataLoader
from tqdm import tqdm
import torch.distributed as dist
... | ANCE/drivers/run_ann_dpr.py/0 | {
"file_path": "ANCE/drivers/run_ann_dpr.py",
"repo_id": "ANCE",
"token_count": 11637
} | 21 |
import collections
import sys
sys.path += ['../']
import glob
import logging
import os
from typing import List, Tuple, Dict
import faiss
import pickle
import numpy as np
import unicodedata
import torch
import torch.distributed as dist
from torch import nn
from torch.serialization import default_restore_location
import ... | ANCE/utils/dpr_utils.py/0 | {
"file_path": "ANCE/utils/dpr_utils.py",
"repo_id": "ANCE",
"token_count": 5362
} | 22 |
"""
Code for self-training with weak supervision.
Author: Giannis Karamanolakis (gkaraman@cs.columbia.edu)
"""
import argparse
import json
import logging
import os
import random
import joblib
import numpy as np
import multiprocessing as mp
from functools import partial
from sklearn.feature_extraction.text import Tfidf... | ASTRA/astra/model/LogReg.py/0 | {
"file_path": "ASTRA/astra/model/LogReg.py",
"repo_id": "ASTRA",
"token_count": 2591
} | 23 |
# ------------------------------------------------------------------------------------------
# Copyright (c). All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -----------------------------------------------------------------------------------------... | AdaMix/NLG/src/expert_soup.py/0 | {
"file_path": "AdaMix/NLG/src/expert_soup.py",
"repo_id": "AdaMix",
"token_count": 1561
} | 24 |
# AdaMix (Mixture-of-Adaptations)
This is the implementation of the paper [AdaMix: Mixture-of-Adaptations for Parameter-efficient Model Tuning](https://arxiv.org/abs/2205.12410).
## Quick links
* [Overview](#overview)
* [GLUE Benchmark](#adapting-to-the-glue-benchmark)
* [BERT-base](#main-results-bert-base)
*... | AdaMix/README.md/0 | {
"file_path": "AdaMix/README.md",
"repo_id": "AdaMix",
"token_count": 2792
} | 25 |
..
Copyright 2020 The HuggingFace Team. 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 ... | AdaMix/docs/source/converting_tensorflow_models.rst/0 | {
"file_path": "AdaMix/docs/source/converting_tensorflow_models.rst",
"repo_id": "AdaMix",
"token_count": 2671
} | 26 |
Transformers
=======================================================================================================================
State-of-the-art Natural Language Processing for Pytorch and TensorFlow 2.0.
🤗 Transformers (formerly known as `pytorch-transformers` and `pytorch-pretrained-bert`) provides general-pu... | AdaMix/docs/source/index.rst/0 | {
"file_path": "AdaMix/docs/source/index.rst",
"repo_id": "AdaMix",
"token_count": 12808
} | 27 |
..
Copyright 2020 The HuggingFace Team. 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 ... | AdaMix/docs/source/main_classes/processors.rst/0 | {
"file_path": "AdaMix/docs/source/main_classes/processors.rst",
"repo_id": "AdaMix",
"token_count": 2321
} | 28 |
..
Copyright 2020 The HuggingFace Team. 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 ... | AdaMix/docs/source/model_doc/ctrl.rst/0 | {
"file_path": "AdaMix/docs/source/model_doc/ctrl.rst",
"repo_id": "AdaMix",
"token_count": 1070
} | 29 |
..
Copyright 2020 The HuggingFace Team. 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 ... | AdaMix/docs/source/model_doc/led.rst/0 | {
"file_path": "AdaMix/docs/source/model_doc/led.rst",
"repo_id": "AdaMix",
"token_count": 1730
} | 30 |
..
Copyright 2021 The HuggingFace Team. 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 ... | AdaMix/docs/source/model_doc/speech_to_text.rst/0 | {
"file_path": "AdaMix/docs/source/model_doc/speech_to_text.rst",
"repo_id": "AdaMix",
"token_count": 2186
} | 31 |
..
Copyright 2020 The HuggingFace Team. 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 ... | AdaMix/docs/source/philosophy.rst/0 | {
"file_path": "AdaMix/docs/source/philosophy.rst",
"repo_id": "AdaMix",
"token_count": 1394
} | 32 |
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 a... | AdaMix/examples/benchmarking/run_benchmark.py/0 | {
"file_path": "AdaMix/examples/benchmarking/run_benchmark.py",
"repo_id": "AdaMix",
"token_count": 699
} | 33 |
import argparse
import glob
import logging
import os
from argparse import Namespace
from importlib import import_module
import numpy as np
import torch
from seqeval.metrics import accuracy_score, f1_score, precision_score, recall_score
from torch.nn import CrossEntropyLoss
from torch.utils.data import DataLoader, Tens... | AdaMix/examples/legacy/pytorch-lightning/run_ner.py/0 | {
"file_path": "AdaMix/examples/legacy/pytorch-lightning/run_ner.py",
"repo_id": "AdaMix",
"token_count": 4279
} | 34 |
#!/usr/bin/env python
# Copyright 2020 The HuggingFace Team. 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... | AdaMix/examples/legacy/seq2seq/save_len_file.py/0 | {
"file_path": "AdaMix/examples/legacy/seq2seq/save_len_file.py",
"repo_id": "AdaMix",
"token_count": 869
} | 35 |
#!/usr/bin/env python
# coding=utf-8
# Copyright The HuggingFace Team and The HuggingFace Inc. team. 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.ap... | AdaMix/examples/multiple-choice/run_swag.py/0 | {
"file_path": "AdaMix/examples/multiple-choice/run_swag.py",
"repo_id": "AdaMix",
"token_count": 7144
} | 36 |
#!/usr/bin/env python3
# Copyright 2018 CMU and The HuggingFace Inc. team.
#
# 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 requir... | AdaMix/examples/research_projects/bertology/run_bertology.py/0 | {
"file_path": "AdaMix/examples/research_projects/bertology/run_bertology.py",
"repo_id": "AdaMix",
"token_count": 7319
} | 37 |
# Movement Pruning: Adaptive Sparsity by Fine-Tuning
Author: @VictorSanh
*Magnitude pruning is a widely used strategy for reducing model size in pure supervised learning; however, it is less effective in the transfer learning regime that has become standard for state-of-the-art natural language processing application... | AdaMix/examples/research_projects/movement-pruning/README.md/0 | {
"file_path": "AdaMix/examples/research_projects/movement-pruning/README.md",
"repo_id": "AdaMix",
"token_count": 4026
} | 38 |
# coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | AdaMix/examples/research_projects/performer/modeling_flax_performer_utils.py/0 | {
"file_path": "AdaMix/examples/research_projects/performer/modeling_flax_performer_utils.py",
"repo_id": "AdaMix",
"token_count": 11674
} | 39 |
import logging
import random
import ray
from transformers import RagConfig, RagRetriever, RagTokenizer
from transformers.file_utils import requires_datasets, requires_faiss
from transformers.models.rag.retrieval_rag import CustomHFIndex
logger = logging.getLogger(__name__)
class RayRetriever:
def __init__(self... | AdaMix/examples/research_projects/rag/distributed_ray_retriever.py/0 | {
"file_path": "AdaMix/examples/research_projects/rag/distributed_ray_retriever.py",
"repo_id": "AdaMix",
"token_count": 2937
} | 40 |
# as due to their complexity multi-gpu tests could impact other tests, and to aid debug we have those in a separate module.
import os
import sys
from pathlib import Path
import torch
from transformers.testing_utils import TestCasePlus, execute_subprocess_async, require_torch_multi_gpu
from utils import load_json
C... | AdaMix/examples/research_projects/seq2seq-distillation/_test_seq2seq_examples_multi_gpu.py/0 | {
"file_path": "AdaMix/examples/research_projects/seq2seq-distillation/_test_seq2seq_examples_multi_gpu.py",
"repo_id": "AdaMix",
"token_count": 2672
} | 41 |
<!---
Copyright 2020 The HuggingFace Team. 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 law or ... | AdaMix/examples/text-generation/README.md/0 | {
"file_path": "AdaMix/examples/text-generation/README.md",
"repo_id": "AdaMix",
"token_count": 332
} | 42 |
#!/usr/bin/env bash
# Copyright 2020 The HuggingFace Team. 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 r... | AdaMix/scripts/fsmt/eval-allenai-wmt16.sh/0 | {
"file_path": "AdaMix/scripts/fsmt/eval-allenai-wmt16.sh",
"repo_id": "AdaMix",
"token_count": 1452
} | 43 |
Metadata-Version: 2.1
Name: transformers
Version: 4.4.2
Summary: State-of-the-art Natural Language Processing for TensorFlow 2.0 and PyTorch
Home-page: https://github.com/huggingface/transformers
Author: Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Sam Shleifer, Patrick von Platen, Sylvain Gugger, Google ... | AdaMix/src/transformers.egg-info/PKG-INFO/0 | {
"file_path": "AdaMix/src/transformers.egg-info/PKG-INFO",
"repo_id": "AdaMix",
"token_count": 2652
} | 44 |
# Copyright 2020 The HuggingFace Team. 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 applicabl... | AdaMix/src/transformers/activations.py/0 | {
"file_path": "AdaMix/src/transformers/activations.py",
"repo_id": "AdaMix",
"token_count": 1134
} | 45 |
# Copyright 2020 The HuggingFace Team. 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 applicabl... | AdaMix/src/transformers/commands/serving.py/0 | {
"file_path": "AdaMix/src/transformers/commands/serving.py",
"repo_id": "AdaMix",
"token_count": 3457
} | 46 |
# Copyright 2020 The HuggingFace Team. 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 applicabl... | AdaMix/src/transformers/data/datasets/language_modeling.py/0 | {
"file_path": "AdaMix/src/transformers/data/datasets/language_modeling.py",
"repo_id": "AdaMix",
"token_count": 11051
} | 47 |
# Copyright 2020 The HuggingFace Team. 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 applicabl... | AdaMix/src/transformers/dependency_versions_check.py/0 | {
"file_path": "AdaMix/src/transformers/dependency_versions_check.py",
"repo_id": "AdaMix",
"token_count": 546
} | 48 |
# Copyright 2020 The HuggingFace Team. 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 applicabl... | AdaMix/src/transformers/modeling_tf_outputs.py/0 | {
"file_path": "AdaMix/src/transformers/modeling_tf_outputs.py",
"repo_id": "AdaMix",
"token_count": 13508
} | 49 |
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | AdaMix/src/transformers/models/albert/convert_albert_original_tf_checkpoint_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/albert/convert_albert_original_tf_checkpoint_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 734
} | 50 |
# coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, Inc.
#
# 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.or... | AdaMix/src/transformers/models/distilbert/modeling_tf_distilbert.py/0 | {
"file_path": "AdaMix/src/transformers/models/distilbert/modeling_tf_distilbert.py",
"repo_id": "AdaMix",
"token_count": 21668
} | 51 |
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | AdaMix/src/transformers/models/encoder_decoder/modeling_encoder_decoder.py/0 | {
"file_path": "AdaMix/src/transformers/models/encoder_decoder/modeling_encoder_decoder.py",
"repo_id": "AdaMix",
"token_count": 9947
} | 52 |
# coding=utf-8
# Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team.
#
# 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
#
# Un... | AdaMix/src/transformers/models/fsmt/configuration_fsmt.py/0 | {
"file_path": "AdaMix/src/transformers/models/fsmt/configuration_fsmt.py",
"repo_id": "AdaMix",
"token_count": 4232
} | 53 |
# coding=utf-8
# Copyright 2020 The Google AI Language Team Authors, Allegro.pl, Facebook Inc. and the HuggingFace Inc. team.
#
# 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://ww... | AdaMix/src/transformers/models/herbert/tokenization_herbert.py/0 | {
"file_path": "AdaMix/src/transformers/models/herbert/tokenization_herbert.py",
"repo_id": "AdaMix",
"token_count": 1160
} | 54 |
# coding=utf-8
# Copyright 2010, The Microsoft Research Asia LayoutLM Team authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | AdaMix/src/transformers/models/layoutlm/configuration_layoutlm.py/0 | {
"file_path": "AdaMix/src/transformers/models/layoutlm/configuration_layoutlm.py",
"repo_id": "AdaMix",
"token_count": 2338
} | 55 |
# coding=utf-8
# Copyright 2020 Google and The HuggingFace Inc. team.
#
# 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... | AdaMix/src/transformers/models/pegasus/convert_pegasus_tf_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/pegasus/convert_pegasus_tf_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 2026
} | 56 |
# coding=utf-8
# Copyright 2020 The Microsoft Authors and The HuggingFace Inc. team.
#
# 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
#
# Unl... | AdaMix/src/transformers/models/prophetnet/modeling_prophetnet.py/0 | {
"file_path": "AdaMix/src/transformers/models/prophetnet/modeling_prophetnet.py",
"repo_id": "AdaMix",
"token_count": 44565
} | 57 |
# coding=utf-8
# Copyright 2020 The SqueezeBert authors and The HuggingFace Inc. team.
#
# 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
#
# U... | AdaMix/src/transformers/models/squeezebert/configuration_squeezebert.py/0 | {
"file_path": "AdaMix/src/transformers/models/squeezebert/configuration_squeezebert.py",
"repo_id": "AdaMix",
"token_count": 2772
} | 58 |
# flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | AdaMix/src/transformers/models/tapas/__init__.py/0 | {
"file_path": "AdaMix/src/transformers/models/tapas/__init__.py",
"repo_id": "AdaMix",
"token_count": 828
} | 59 |
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | AdaMix/src/transformers/models/transfo_xl/convert_transfo_xl_original_tf_checkpoint_to_pytorch.py/0 | {
"file_path": "AdaMix/src/transformers/models/transfo_xl/convert_transfo_xl_original_tf_checkpoint_to_pytorch.py",
"repo_id": "AdaMix",
"token_count": 1969
} | 60 |
# coding=utf-8
# Copyright 2021 The Facebook Inc. and The HuggingFace Inc. team. 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/LI... | AdaMix/src/transformers/models/wav2vec2/tokenization_wav2vec2.py/0 | {
"file_path": "AdaMix/src/transformers/models/wav2vec2/tokenization_wav2vec2.py",
"repo_id": "AdaMix",
"token_count": 9327
} | 61 |
# coding=utf-8
# Copyright 2020 The Microsoft Authors and The HuggingFace Inc. team.
#
# 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
#
# Unl... | AdaMix/src/transformers/models/xlm_prophetnet/configuration_xlm_prophetnet.py/0 | {
"file_path": "AdaMix/src/transformers/models/xlm_prophetnet/configuration_xlm_prophetnet.py",
"repo_id": "AdaMix",
"token_count": 378
} | 62 |
from typing import TYPE_CHECKING, Optional, Union
import numpy as np
from ..file_utils import add_end_docstrings, is_tf_available, is_torch_available
from ..modelcard import ModelCard
from ..tokenization_utils import PreTrainedTokenizer
from ..utils import logging
from .base import PIPELINE_INIT_ARGS, ArgumentHandler... | AdaMix/src/transformers/pipelines/fill_mask.py/0 | {
"file_path": "AdaMix/src/transformers/pipelines/fill_mask.py",
"repo_id": "AdaMix",
"token_count": 3730
} | 63 |
# coding=utf-8
# Copyright 2020-present the HuggingFace Inc. team.
#
# 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 ap... | AdaMix/src/transformers/trainer_callback.py/0 | {
"file_path": "AdaMix/src/transformers/trainer_callback.py",
"repo_id": "AdaMix",
"token_count": 9304
} | 64 |
# This file is autogenerated by the command `make fix-copies`, do not edit.
from ..file_utils import requires_flax
class FlaxPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_flax(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_flax(self)
FLAX_MODEL_... | AdaMix/src/transformers/utils/dummy_flax_objects.py/0 | {
"file_path": "AdaMix/src/transformers/utils/dummy_flax_objects.py",
"repo_id": "AdaMix",
"token_count": 465
} | 65 |
<!---
Copyright 2020 The HuggingFace Team. 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 law or ... | AdaMix/templates/adding_a_new_model/README.md/0 | {
"file_path": "AdaMix/templates/adding_a_new_model/README.md",
"repo_id": "AdaMix",
"token_count": 1218
} | 66 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.