text
stringlengths
5
22M
id
stringlengths
12
177
metadata
dict
__index_level_0__
int64
0
1.37k
# Lab 2 - 定制一个新的张量运算 ## 实验目的 1. 理解DNN框架中的张量算子的原理 2. 基于不同方法实现新的张量运算,并比较性能差异 ## 实验环境 * PyTorch==1.5.0 ## 实验原理 1. 深度神经网络中的张量运算原理 2. PyTorch中基于Function和Module构造张量的方法 3. 通过C++扩展编写Python函数模块 ## 实验内容 ### 实验流程图 ![](/imgs/Lab2-flow.png "Lab2 flow chat") ### 具体步骤 1. 在MNIST的模型样例中,选择线性层(Linear)张量运算进行定制化实现 2. 理解PyTorch构...
AI-System/Labs/BasicLabs/Lab2/README.md/0
{ "file_path": "AI-System/Labs/BasicLabs/Lab2/README.md", "repo_id": "AI-System", "token_count": 1897 }
11
## 环境设置 ### 1 前置依赖 推荐操作系统:Ubuntu 16.04 or 18.04 ### 1.1 配置你的电脑或服务器 Docker的官方文档中的*getting started*有关于不同操作系统的Docker细节配置方法 * [Linux](https://docs.docker.com/engine/installation/linux/) * [Ubuntu](https://docs.docker.com/engine/install/ubuntu/) * [Mac](https://docs.docker.com/docker-for-mac/) * [Windows](https://doc...
AI-System/Labs/BasicLabs/Lab5/setup.md/0
{ "file_path": "AI-System/Labs/BasicLabs/Lab5/setup.md", "repo_id": "AI-System", "token_count": 665 }
12
#include <iostream> #include <stdio.h> using namespace std; int main() { int M = 3; int N = 3; int K = 3; int A[M][K]; int B[K][N]; int C[M][N]; for (int m = 0; m < M; m++) { for (int n = 0; n < N; n++) { C[m][n] = 0; for (int k = 0; k < K; k++) { C[m][...
AI-System/Textbook/第1章-人工智能系统概述/src/gemm_locality.cpp/0
{ "file_path": "AI-System/Textbook/第1章-人工智能系统概述/src/gemm_locality.cpp", "repo_id": "AI-System", "token_count": 304 }
13
<!--Copyright © Microsoft Corporation. All rights reserved. 适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可--> - [3.2 神经网络计算中的控制流](#32-神经网络计算中的控制流) - [3.2.1 背景](#321-背景) - [3.2.2 静态图:向数据流图中添加控制流原语](#322-静态图向数据流图中添加控制流原语) - [3.2.3 动态图:复用宿主语言控制流语句](#323-动态图复用宿主语言控制流语句) - [3.2.4 动态图转换...
AI-System/Textbook/第3章-深度学习框架基础/3.2-神经网络计算中的控制流.md/0
{ "file_path": "AI-System/Textbook/第3章-深度学习框架基础/3.2-神经网络计算中的控制流.md", "repo_id": "AI-System", "token_count": 11629 }
14
<!--Copyright © Microsoft Corporation. All rights reserved. 适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可--> # 4.1 深度学习的计算模式 在理解深度学习体系结构之前,分析深度学习计算中常见的计算模式或模型结构至关重要。目前,深度学习已经广泛应用在计算机视觉、自然语言处理、语音处理等应用领域中,尽管模型结构在不断的演进,我们仍可以粗略的将大部分深度学习模型归纳为几大类常见的结构,如全连接层(Fully-connected layer)、卷积层(Convolut...
AI-System/Textbook/第4章-矩阵运算与计算机体系结构/4.1-深度学习的计算模式.md/0
{ "file_path": "AI-System/Textbook/第4章-矩阵运算与计算机体系结构/4.1-深度学习的计算模式.md", "repo_id": "AI-System", "token_count": 4883 }
15
<!--Copyright © Microsoft Corporation. All rights reserved. 适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可--> # 分布式训练算法与系统 (Algorithms and Systems for Distributed Parallel Training) # 简介 深度机器学习以其强大的数学统计能力,在众多领域的不同任务中显著超越了传统方法,从而广泛应用于我们生活生产的各个方面。除了有赖于模型设计的不断发展之外,这一切进步要着重归功于背后起支撑作用的巨大计算力。...
AI-System/Textbook/第6章-分布式训练算法与系统/6-前言.md/0
{ "file_path": "AI-System/Textbook/第6章-分布式训练算法与系统/6-前言.md", "repo_id": "AI-System", "token_count": 1625 }
16
<!--Copyright © Microsoft Corporation. All rights reserved. 适用于[License](https://github.com/microsoft/AI-System/blob/main/LICENSE)版权许可--> # 7.4 面向深度学习的集群管理系统 之前的章节已经介绍经典的调度算法在运行深度学习作业的集群调度中的应用。但是这些算法本身没有考虑深度学习作业自身的特点,也没有利用 GPU 服务器中 GPU 的拓扑结构等硬件体系结构。 本章将围绕前沿的针对深度学习负载和 GPU 服务器特点而设计的平台调度算法进行介绍,期望让读者了解新负载和硬件的特点和调度管理需求...
AI-System/Textbook/第7章-异构计算集群调度与资源管理系统/7.4-面向深度学习的集群管理系统.md/0
{ "file_path": "AI-System/Textbook/第7章-异构计算集群调度与资源管理系统/7.4-面向深度学习的集群管理系统.md", "repo_id": "AI-System", "token_count": 41828 }
17
# Starter pipeline # Start with a minimal pipeline that you can customize to build and deploy your code. # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml trigger: batch: true stages: - stage: dev jobs: - template: steps/deploy.yml parameters: deployment_name: MLAKSDeployAMLJ...
AI/.ci/realtimeserving-release.yml/0
{ "file_path": "AI/.ci/realtimeserving-release.yml", "repo_id": "AI", "token_count": 994 }
18
parameters: Agent: Hosted Ubuntu 1604 jobDisplayName: 'defaultDisplayName' jobTimeoutInMinutes: 180 TridentWorkloadTypeShort: # DeployLocation: # DefaultWorkingDirectory: # Template: # azureSubscription: # azure_subscription: # ProjectLocation: # PythonPath: # doCleanup: False stages: - templat...
AI/.ci/stages/deploy_notebooks_stages.yml/0
{ "file_path": "AI/.ci/stages/deploy_notebooks_stages.yml", "repo_id": "AI", "token_count": 825 }
19
parameters: location: "x" azureSubscription: 'x' conda: MLAKSDeployAML azure_subscription: 'x' azureresourcegroup: "dcibrg" workspacename: "dcibws" azureregion: "westus" python_path: "{{cookiecutter.project_name}}" timeoutInMinutes: 90 steps: - task: AzureCLI@1 displayName: ${{parameters.notebook}}...
AI/.ci/steps/aml/creation_step.yml/0
{ "file_path": "AI/.ci/steps/aml/creation_step.yml", "repo_id": "AI", "token_count": 384 }
20
parameters: template: '' azureSubscription: 'x' azure_subscription: 'x' azureresourcegroup: 'x' workspacename: 'x' azureregion: 'x' aksimagename: 'x' aks_name: "mlaks" location: "" #Root Dir of Project python_path: "" #Root Dir of Python Env cluster_name: "-" flighting_release: false flighti...
AI/.ci/steps/deploy_notebook_steps.yml/0
{ "file_path": "AI/.ci/steps/deploy_notebook_steps.yml", "repo_id": "AI", "token_count": 408 }
21
variables: DeploymentName: ADOTrinDeployJob TridentWorkloadTypeShort: adomltrain DeployLocation: eastus2 ProjectLocation: "." PythonPath: "." Template: ADOTrainDeployAMLJob.yml Notebooks: '00_AMLConfiguration.ipynb 01_AutoML_Local.ipynb' # NOT USED YET
AI/.ci/vars/ado_ml_batch_train_vars.yml/0
{ "file_path": "AI/.ci/vars/ado_ml_batch_train_vars.yml", "repo_id": "AI", "token_count": 97 }
22
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "name": { "type": "String" }, "sqlAdministratorLogin": { "type": "String" }, "sqlAdministratorPassword"...
AI/AzureDeployment/DeploySpark/Synapse/azuredeploy.json/0
{ "file_path": "AI/AzureDeployment/DeploySpark/Synapse/azuredeploy.json", "repo_id": "AI", "token_count": 1108 }
23
import sys sys.path += ['../'] import os import torch from data.msmarco_data import GetTrainingDataProcessingFn, GetTripletTrainingDataProcessingFn from utils.util import ( getattr_recursive, set_seed, StreamingDataset, EmbeddingCache, get_checkpoint_no, get_latest_ann_data, is_first_worker ...
ANCE/drivers/run_ann.py/0
{ "file_path": "ANCE/drivers/run_ann.py", "repo_id": "ANCE", "token_count": 11185 }
24
""" Code for self-training with weak supervision. Author: Giannis Karamanolakis (gkaraman@cs.columbia.edu) """ import pandas as pd import numpy as np import os from sklearn.model_selection import train_test_split import glob import joblib from copy import deepcopy import shutil # PreprocessedDataset is used for loadi...
ASTRA/astra/dataset/preprocessed_dataset.py/0
{ "file_path": "ASTRA/astra/dataset/preprocessed_dataset.py", "repo_id": "ASTRA", "token_count": 4723 }
25
[ { "tripleset": [ [ "Mars Hill College", "JOINED", "1973" ], [ "Mars Hill College", "LOCATION", "Mars Hill, North Carolina" ] ], "subtree_was_extended": true, "annotations": [ { "source": "WikiSQL_decl_sents", ...
AdaMix/NLG/data/dart/dart-v1.1.1-full-dev.json/0
{ "file_path": "AdaMix/NLG/data/dart/dart-v1.1.1-full-dev.json", "repo_id": "AdaMix", "token_count": 1167015 }
26
# ------------------------------------------------------------------------------------------ # Copyright (c). All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -----------------------------------------------------------------------------------------...
AdaMix/NLG/loralib/utils.py/0
{ "file_path": "AdaMix/NLG/loralib/utils.py", "repo_id": "AdaMix", "token_count": 810 }
27
# ------------------------------------------------------------------------------------------ # Copyright (c). All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -----------------------------------------------------------------------------------------...
AdaMix/NLG/src/data_utils.py/0
{ "file_path": "AdaMix/NLG/src/data_utils.py", "repo_id": "AdaMix", "token_count": 4617 }
28
#!/bin/bash source ~/.bashrc echo "running docker-entrypoint.sh" conda activate container echo $KUBE_GOOGLE_CLOUD_TPU_ENDPOINTS echo "printed TPU info" export XRT_TPU_CONFIG="tpu_worker;0;${KUBE_GOOGLE_CLOUD_TPU_ENDPOINTS:7}" exec "$@"#!/bin/bash
AdaMix/docker/transformers-pytorch-tpu/docker-entrypoint.sh/0
{ "file_path": "AdaMix/docker/transformers-pytorch-tpu/docker-entrypoint.sh", "repo_id": "AdaMix", "token_count": 112 }
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/main_classes/optimizer_schedules.rst/0
{ "file_path": "AdaMix/docs/source/main_classes/optimizer_schedules.rst", "repo_id": "AdaMix", "token_count": 921 }
30
.. 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/bort.rst/0
{ "file_path": "AdaMix/docs/source/model_doc/bort.rst", "repo_id": "AdaMix", "token_count": 759 }
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/model_doc/herbert.rst/0
{ "file_path": "AdaMix/docs/source/model_doc/herbert.rst", "repo_id": "AdaMix", "token_count": 920 }
32
.. 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/reformer.rst/0
{ "file_path": "AdaMix/docs/source/model_doc/reformer.rst", "repo_id": "AdaMix", "token_count": 3100 }
33
.. 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/multilingual.rst/0
{ "file_path": "AdaMix/docs/source/multilingual.rst", "repo_id": "AdaMix", "token_count": 1566 }
34
<!--- 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/benchmarking/README.md/0
{ "file_path": "AdaMix/examples/benchmarking/README.md", "repo_id": "AdaMix", "token_count": 493 }
35
#!/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/convert_model_to_fp16.py/0
{ "file_path": "AdaMix/examples/legacy/seq2seq/convert_model_to_fp16.py", "repo_id": "AdaMix", "token_count": 450 }
36
#!/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/run_distributed_eval.py/0
{ "file_path": "AdaMix/examples/legacy/seq2seq/run_distributed_eval.py", "repo_id": "AdaMix", "token_count": 4145 }
37
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and 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 cop...
AdaMix/examples/legacy/token-classification/utils_ner.py/0
{ "file_path": "AdaMix/examples/legacy/token-classification/utils_ner.py", "repo_id": "AdaMix", "token_count": 7663 }
38
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and 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 cop...
AdaMix/examples/research_projects/adversarial/run_hans.py/0
{ "file_path": "AdaMix/examples/research_projects/adversarial/run_hans.py", "repo_id": "AdaMix", "token_count": 3256 }
39
# coding=utf-8 # Copyright 2019 HuggingFace 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.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
AdaMix/examples/research_projects/bertabs/test_utils_summarization.py/0
{ "file_path": "AdaMix/examples/research_projects/bertabs/test_utils_summarization.py", "repo_id": "AdaMix", "token_count": 1749 }
40
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. 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.org/licenses/LICENSE-2.0 # # Un...
AdaMix/examples/research_projects/distillation/distiller.py/0
{ "file_path": "AdaMix/examples/research_projects/distillation/distiller.py", "repo_id": "AdaMix", "token_count": 12521 }
41
# Long Form Question Answering Author: @yjernite This folder contains the code for the Long Form Question answering [demo](http://35.226.96.115:8080/) as well as methods to train and use a fully end-to-end Long Form Question Answering system using the [🤗transformers](https://github.com/huggingface/transformers) and ...
AdaMix/examples/research_projects/longform-qa/README.md/0
{ "file_path": "AdaMix/examples/research_projects/longform-qa/README.md", "repo_id": "AdaMix", "token_count": 208 }
42
## MM-IMDb Based on the script [`run_mmimdb.py`](https://github.com/huggingface/transformers/blob/master/examples/contrib/mm-imdb/run_mmimdb.py). [MM-IMDb](http://lisi1.unal.edu.co/mmimdb/) is a Multimodal dataset with around 26,000 movies including images, plots and other metadata. ### Training on MM-IMDb ``` pyth...
AdaMix/examples/research_projects/mm-imdb/README.md/0
{ "file_path": "AdaMix/examples/research_projects/mm-imdb/README.md", "repo_id": "AdaMix", "token_count": 282 }
43
# Performer fine-tuning Example authors: @TevenLeScao, @Patrickvonplaten Paper authors: Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, David Belanger, Lucy Colwell, Adrian Weller ## Requirements `datase...
AdaMix/examples/research_projects/performer/README.md/0
{ "file_path": "AdaMix/examples/research_projects/performer/README.md", "repo_id": "AdaMix", "token_count": 408 }
44
import logging import os from pathlib import Path import numpy as np import pytorch_lightning as pl import torch from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint from pytorch_lightning.utilities import rank_zero_only from utils_rag import save_json def count_trainable_parameters(model): mo...
AdaMix/examples/research_projects/rag/callbacks_rag.py/0
{ "file_path": "AdaMix/examples/research_projects/rag/callbacks_rag.py", "repo_id": "AdaMix", "token_count": 1926 }
45
#!/usr/bin/env python import argparse import os import sys from unittest.mock import patch import pytorch_lightning as pl import timeout_decorator import torch from distillation import SummarizationDistiller, distill_main from finetune import SummarizationModule, main from transformers import MarianMTModel from tran...
AdaMix/examples/research_projects/seq2seq-distillation/_test_bash_script.py/0
{ "file_path": "AdaMix/examples/research_projects/seq2seq-distillation/_test_bash_script.py", "repo_id": "AdaMix", "token_count": 3934 }
46
import warnings from pathlib import Path from typing import List, Tuple, Union import fire from torch import nn from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, PreTrainedModel from transformers.utils import logging logger = logging.get_logger(__name__) def copy_layers(src_layers: nn.ModuleList, des...
AdaMix/examples/research_projects/seq2seq-distillation/make_student.py/0
{ "file_path": "AdaMix/examples/research_projects/seq2seq-distillation/make_student.py", "repo_id": "AdaMix", "token_count": 3129 }
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 applicable law or ...
AdaMix/examples/seq2seq/README.md/0
{ "file_path": "AdaMix/examples/seq2seq/README.md", "repo_id": "AdaMix", "token_count": 3198 }
48
#!/usr/bin/env python # coding=utf-8 # 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...
AdaMix/examples/text-classification/run_tf_glue.py/0
{ "file_path": "AdaMix/examples/text-classification/run_tf_glue.py", "repo_id": "AdaMix", "token_count": 3538 }
49
#!/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/convert-allenai-wmt16.sh/0
{ "file_path": "AdaMix/scripts/fsmt/convert-allenai-wmt16.sh", "repo_id": "AdaMix", "token_count": 1372 }
50
#!/bin/bash for FILE in converted/*; do model_name=`basename $FILE` transformers-cli repo create $model_name -y git clone https://huggingface.co/Helsinki-NLP/$model_name mv $FILE/* $model_name/ cd $model_name git add . && git commit -m "initial commit" git push cd .. done
AdaMix/scripts/tatoeba/upload_models.sh/0
{ "file_path": "AdaMix/scripts/tatoeba/upload_models.sh", "repo_id": "AdaMix", "token_count": 109 }
51
# 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/env.py/0
{ "file_path": "AdaMix/src/transformers/commands/env.py", "repo_id": "AdaMix", "token_count": 1002 }
52
# 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/data_collator.py/0
{ "file_path": "AdaMix/src/transformers/data/data_collator.py", "repo_id": "AdaMix", "token_count": 13938 }
53
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and 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 cop...
AdaMix/src/transformers/data/processors/utils.py/0
{ "file_path": "AdaMix/src/transformers/data/processors/utils.py", "repo_id": "AdaMix", "token_count": 6018 }
54
# 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/modelcard.py/0
{ "file_path": "AdaMix/src/transformers/modelcard.py", "repo_id": "AdaMix", "token_count": 4062 }
55
# 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/auto/modeling_tf_auto.py/0
{ "file_path": "AdaMix/src/transformers/models/auto/modeling_tf_auto.py", "repo_id": "AdaMix", "token_count": 30331 }
56
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and 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 cop...
AdaMix/src/transformers/models/bert/modeling_tf_bert.py/0
{ "file_path": "AdaMix/src/transformers/models/bert/modeling_tf_bert.py", "repo_id": "AdaMix", "token_count": 35477 }
57
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and 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 cop...
AdaMix/src/transformers/models/camembert/modeling_tf_camembert.py/0
{ "file_path": "AdaMix/src/transformers/models/camembert/modeling_tf_camembert.py", "repo_id": "AdaMix", "token_count": 2011 }
58
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team, The Hugging Face 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...
AdaMix/src/transformers/models/dpr/tokenization_dpr.py/0
{ "file_path": "AdaMix/src/transformers/models/dpr/tokenization_dpr.py", "repo_id": "AdaMix", "token_count": 8358 }
59
# coding=utf-8 # Copyright 2020-present Google Brain and Carnegie Mellon University 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.a...
AdaMix/src/transformers/models/funnel/modeling_tf_funnel.py/0
{ "file_path": "AdaMix/src/transformers/models/funnel/modeling_tf_funnel.py", "repo_id": "AdaMix", "token_count": 34672 }
60
# coding=utf-8 # Copyright 2021 Iz Beltagy, Matthew E. Peters, Arman Cohan 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://w...
AdaMix/src/transformers/models/led/tokenization_led.py/0
{ "file_path": "AdaMix/src/transformers/models/led/tokenization_led.py", "repo_id": "AdaMix", "token_count": 666 }
61
# Copyright 2021 The Fairseq Authors 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/LICENSE-2.0 # #...
AdaMix/src/transformers/models/m2m_100/convert_m2m100_original_checkpoint_to_pytorch.py/0
{ "file_path": "AdaMix/src/transformers/models/m2m_100/convert_m2m100_original_checkpoint_to_pytorch.py", "repo_id": "AdaMix", "token_count": 1203 }
62
# coding=utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # Copyright (c) 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...
AdaMix/src/transformers/models/mmbt/configuration_mmbt.py/0
{ "file_path": "AdaMix/src/transformers/models/mmbt/configuration_mmbt.py", "repo_id": "AdaMix", "token_count": 548 }
63
# coding=utf-8 # Copyright 2018 The Open AI Team 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 # # ...
AdaMix/src/transformers/models/roberta/tokenization_roberta.py/0
{ "file_path": "AdaMix/src/transformers/models/roberta/tokenization_roberta.py", "repo_id": "AdaMix", "token_count": 5074 }
64
# coding=utf-8 # Copyright 2020 T5 Authors and 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 at # # ...
AdaMix/src/transformers/models/t5/modeling_tf_t5.py/0
{ "file_path": "AdaMix/src/transformers/models/t5/modeling_tf_t5.py", "repo_id": "AdaMix", "token_count": 32306 }
65
# coding=utf-8 # Copyright 2021 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/wav2vec2/feature_extraction_wav2vec2.py/0
{ "file_path": "AdaMix/src/transformers/models/wav2vec2/feature_extraction_wav2vec2.py", "repo_id": "AdaMix", "token_count": 3962 }
66
# 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/pipelines/base.py/0
{ "file_path": "AdaMix/src/transformers/pipelines/base.py", "repo_id": "AdaMix", "token_count": 9387 }
67
# coding=utf-8 # Copyright 2020 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/tokenization_utils_base.py/0
{ "file_path": "AdaMix/src/transformers/tokenization_utils_base.py", "repo_id": "AdaMix", "token_count": 67801 }
68
{ "example_name": "text classification", "directory_name": "{{cookiecutter.example_name|lower|replace(' ', '-')}}", "example_shortcut": "{{cookiecutter.directory_name}}", "model_class": "AutoModel", "authors": "The HuggingFace Team", "can_train_from_scratch": ["True", "False"] }
AdaMix/templates/adding_a_new_example_script/cookiecutter.json/0
{ "file_path": "AdaMix/templates/adding_a_new_example_script/cookiecutter.json", "repo_id": "AdaMix", "token_count": 101 }
69
How to add BigBird to 🤗 Transformers? ===================================== Mentor: [Patrick](https://github.com/patrickvonplaten) Begin: 12.02.2020 Estimated End: 19.03.2020 Contributor: [Vasudev](https://github.com/vasudevgupta7) Adding a new model is often difficult and requires an in-depth knowledge of the 🤗...
AdaMix/templates/adding_a_new_model/open_model_proposals/ADD_BIG_BIRD.md/0
{ "file_path": "AdaMix/templates/adding_a_new_model/open_model_proposals/ADD_BIG_BIRD.md", "repo_id": "AdaMix", "token_count": 14647 }
70
# coding=utf-8 # Copyright 2020 The HuggingFace Team 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 clone of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
AdaMix/tests/test_generation_logits_process.py/0
{ "file_path": "AdaMix/tests/test_generation_logits_process.py", "repo_id": "AdaMix", "token_count": 8400 }
71
# coding=utf-8 # 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 requir...
AdaMix/tests/test_modeling_gpt2.py/0
{ "file_path": "AdaMix/tests/test_modeling_gpt2.py", "repo_id": "AdaMix", "token_count": 13494 }
72
# coding=utf-8 # Copyright 2020 Huggingface # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
AdaMix/tests/test_modeling_reformer.py/0
{ "file_path": "AdaMix/tests/test_modeling_reformer.py", "repo_id": "AdaMix", "token_count": 26838 }
73
# coding=utf-8 # 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 requir...
AdaMix/tests/test_modeling_tf_ctrl.py/0
{ "file_path": "AdaMix/tests/test_modeling_tf_ctrl.py", "repo_id": "AdaMix", "token_count": 4500 }
74
# 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/tests/test_onnx.py/0
{ "file_path": "AdaMix/tests/test_onnx.py", "repo_id": "AdaMix", "token_count": 3207 }
75
# 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 applicabl...
AdaMix/tests/test_processor_speech_to_text.py/0
{ "file_path": "AdaMix/tests/test_processor_speech_to_text.py", "repo_id": "AdaMix", "token_count": 2301 }
76
# coding=utf-8 # Copyright 2018 Salesforce and 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 a...
AdaMix/tests/test_tokenization_ctrl.py/0
{ "file_path": "AdaMix/tests/test_tokenization_ctrl.py", "repo_id": "AdaMix", "token_count": 1074 }
77
# coding=utf-8 # Copyright 2018 The Google AI Language 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 # # Unless required by ...
AdaMix/tests/test_tokenization_openai.py/0
{ "file_path": "AdaMix/tests/test_tokenization_openai.py", "repo_id": "AdaMix", "token_count": 2309 }
78
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team, The Microsoft Research 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 # # ...
AdaMix/tests/test_tokenization_xlm_prophetnet.py/0
{ "file_path": "AdaMix/tests/test_tokenization_xlm_prophetnet.py", "repo_id": "AdaMix", "token_count": 2150 }
79
# coding=utf-8 # Copyright 2020 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/utils/class_mapping_update.py/0
{ "file_path": "AdaMix/utils/class_mapping_update.py", "repo_id": "AdaMix", "token_count": 705 }
80
ARG BASE_IMAGE=nvidia/cudagl:10.0-devel-ubuntu18.04 FROM $BASE_IMAGE RUN apt-get update RUN apt-get install \ git \ libglu1-mesa-dev \ pulseaudio \ python3 \ python3-pip \ sudo \ sudo \ wget \ x11-xserver-utils \ xdg-user-dirs \ unzip \ -y --no-install-recommends RUN pip3 install setuptools wheel RUN pi...
AirSim-Drone-Racing-Lab/docker/Dockerfile/0
{ "file_path": "AirSim-Drone-Racing-Lab/docker/Dockerfile", "repo_id": "AirSim-Drone-Racing-Lab", "token_count": 365 }
81
import numpy as np from matplotlib import pyplot as plt import cv2 import time # open data data_path = '/home/rb/data/il_datasets/bc_0' vel_table = np.loadtxt(data_path + '/proc_vel.txt', delimiter=',').astype(np.float32) with open(data_path + '/proc_images.txt') as f: img_table = f.read().splitlines() # sanity c...
AirSim-Drone-Racing-VAE-Imitation/datagen/action_generator/plot_data.py/0
{ "file_path": "AirSim-Drone-Racing-VAE-Imitation/datagen/action_generator/plot_data.py", "repo_id": "AirSim-Drone-Racing-VAE-Imitation", "token_count": 701 }
82
import tensorflow as tf from tensorflow.keras import Model from tensorflow.keras.layers import Dense, Flatten, Conv2D, BatchNormalization, Lambda, Concatenate, Conv2DTranspose, Reshape, ReLU class ImgDecoder(Model): def __init__(self): super(ImgDecoder, self).__init__() self.create_model() def...
AirSim-Drone-Racing-VAE-Imitation/racing_models/decoders.py/0
{ "file_path": "AirSim-Drone-Racing-VAE-Imitation/racing_models/decoders.py", "repo_id": "AirSim-Drone-Racing-VAE-Imitation", "token_count": 1125 }
83
# !bin/bash # **Usage** # - for running default image, training binaries, in windowed mode: # `$ ./run_docker_image.sh "" training` # - for running default image, qualification binaries, in windowed mode: # `$ ./run_docker_image.sh "" qualification` # - for running default image, training binaries, i...
AirSim-NeurIPS2019-Drone-Racing/docker/run_docker_image.sh/0
{ "file_path": "AirSim-NeurIPS2019-Drone-Racing/docker/run_docker_image.sh", "repo_id": "AirSim-NeurIPS2019-Drone-Racing", "token_count": 1223 }
84
[flake8] ignore = E501, W503
AzureTRE/.flake8/0
{ "file_path": "AzureTRE/.flake8", "repo_id": "AzureTRE", "token_count": 13 }
85
#!/bin/bash # 1. Remove any previously run failed flag # 2. Run pytest, but capture the exit code so we always succeed # 3. Output a file if the tests are not successful. rm -f ../test-results/pytest_airlock_processor* mkdir -p ../test-results if ! pytest --junit-xml ../test-results/pytest_airlock_processor_unit.xml ...
AzureTRE/airlock_processor/run_tests_and_exit_succesfully.sh/0
{ "file_path": "AzureTRE/airlock_processor/run_tests_and_exit_succesfully.sh", "repo_id": "AzureTRE", "token_count": 135 }
86
from fastapi import Depends, HTTPException, Path, status from api.helpers import get_repository from db.errors import EntityDoesNotExist from db.repositories.resource_templates import ResourceTemplateRepository from models.domain.resource import ResourceType from models.domain.resource_template import ResourceTemplate...
AzureTRE/api_app/api/dependencies/workspace_service_templates.py/0
{ "file_path": "AzureTRE/api_app/api/dependencies/workspace_service_templates.py", "repo_id": "AzureTRE", "token_count": 242 }
87
from datetime import datetime import semantic_version from copy import deepcopy from typing import Dict, Any, Optional from fastapi import HTTPException, status from db.repositories.user_resources import UserResourceRepository from models.domain.user_resource import UserResource from models.domain.workspace_service im...
AzureTRE/api_app/api/routes/resource_helpers.py/0
{ "file_path": "AzureTRE/api_app/api/routes/resource_helpers.py", "repo_id": "AzureTRE", "token_count": 5123 }
88
import semantic_version from db.repositories.workspaces import WorkspaceRepository from services.logging import logger class WorkspaceMigration(WorkspaceRepository): @classmethod async def create(cls): cls = WorkspaceMigration() resource_repo = await super().create() cls._container = ...
AzureTRE/api_app/db/migrations/workspaces.py/0
{ "file_path": "AzureTRE/api_app/db/migrations/workspaces.py", "repo_id": "AzureTRE", "token_count": 949 }
89
import asyncio import uvicorn from fastapi import FastAPI from fastapi.exceptions import RequestValidationError from fastapi.middleware.cors import CORSMiddleware from fastapi.concurrency import asynccontextmanager from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor from starlette.exceptions import...
AzureTRE/api_app/main.py/0
{ "file_path": "AzureTRE/api_app/main.py", "repo_id": "AzureTRE", "token_count": 890 }
90
from pydantic import Field from models.domain.resource import ResourceType from models.domain.resource_template import ResourceTemplate class UserResourceTemplate(ResourceTemplate): parentWorkspaceService: str = Field("", title="Parent Workspace Service", description="The parent workspace service under which ser...
AzureTRE/api_app/models/domain/user_resource_template.py/0
{ "file_path": "AzureTRE/api_app/models/domain/user_resource_template.py", "repo_id": "AzureTRE", "token_count": 89 }
91
from typing import List from pydantic import BaseModel, Field from models.domain.resource import ResourceType from models.domain.user_resource import UserResource def get_sample_user_resource(user_resource_id: str) -> dict: return { "id": user_resource_id, "ownerId": "abc9ru33-7265-4b5f-9eae-a1a...
AzureTRE/api_app/models/schemas/user_resource.py/0
{ "file_path": "AzureTRE/api_app/models/schemas/user_resource.py", "repo_id": "AzureTRE", "token_count": 972 }
92
{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://github.com/microsoft/AzureTRE/schema/workspace.json", "type": "object", "title": "Workspace Default Parameters", "description": "These parameters are required for all workspaces", "required": [ "display_name", "description" ], ...
AzureTRE/api_app/schemas/workspace.json/0
{ "file_path": "AzureTRE/api_app/schemas/workspace.json", "repo_id": "AzureTRE", "token_count": 335 }
93
from typing import Tuple from azure.core import exceptions from azure.servicebus.aio import ServiceBusClient from azure.mgmt.compute.aio import ComputeManagementClient from azure.cosmos.exceptions import CosmosHttpResponseError from azure.cosmos.aio import ContainerProxy from azure.servicebus.exceptions import ServiceB...
AzureTRE/api_app/services/health_checker.py/0
{ "file_path": "AzureTRE/api_app/services/health_checker.py", "repo_id": "AzureTRE", "token_count": 1462 }
94
import pytest from httpx import AsyncClient from mock import patch from models.schemas.status import StatusEnum from resources import strings pytestmark = pytest.mark.asyncio @patch("api.routes.health.create_resource_processor_status") @patch("api.routes.health.create_service_bus_status") @patch("api.routes.health....
AzureTRE/api_app/tests_ma/test_api/test_routes/test_health.py/0
{ "file_path": "AzureTRE/api_app/tests_ma/test_api/test_routes/test_health.py", "repo_id": "AzureTRE", "token_count": 1046 }
95
import pytest from mock import patch from db.errors import UnableToAccessDatabase from db.repositories.base import BaseRepository pytestmark = pytest.mark.asyncio @patch("api.dependencies.database.Database.get_container_proxy") async def test_instantiating_a_repo_raises_unable_to_access_database_if_database_cant_be...
AzureTRE/api_app/tests_ma/test_db/test_repositories/test_base_repository.py/0
{ "file_path": "AzureTRE/api_app/tests_ma/test_db/test_repositories/test_base_repository.py", "repo_id": "AzureTRE", "token_count": 167 }
96
import json import pytest import uuid from azure.servicebus import ServiceBusMessage from mock import AsyncMock, patch from models.schemas.resource import ResourcePatch from service_bus.helpers import ( try_update_with_retries, update_resource_for_step, ) from tests_ma.test_api.conftest import create_test_use...
AzureTRE/api_app/tests_ma/test_service_bus/test_resource_request_sender.py/0
{ "file_path": "AzureTRE/api_app/tests_ma/test_service_bus/test_resource_request_sender.py", "repo_id": "AzureTRE", "token_count": 2631 }
97
# Collection of API HTTP request samples This folder contains a set of .http files that can be used to test the API - [API User Journey](./API%20User%20Journey.http): A typical scenario with registering templates, creating workspaces and other resources - [API Template GET Endpoints](./API%20Template%20GET%20Endpoint...
AzureTRE/api_http_requests/README.md/0
{ "file_path": "AzureTRE/api_http_requests/README.md", "repo_id": "AzureTRE", "token_count": 1041 }
98
import click import logging from tre.api_client import ApiClient from tre.output import output, output_option, query_option @click.command(name="health", help="Show Health") @output_option() @query_option() def health(output_format, query) -> None: log = logging.getLogger(__name__) client = ApiClient.get_ap...
AzureTRE/cli/tre/commands/health.py/0
{ "file_path": "AzureTRE/cli/tre/commands/health.py", "repo_id": "AzureTRE", "token_count": 200 }
99
import logging import click from tre.commands.operation import get_operation_id_completion, operation_show from tre.output import output_option, query_option from .contexts import pass_workspace_operation_context, WorkspaceOperationContext def operation_id_completion(ctx, param, incomplete): log = logging.getLog...
AzureTRE/cli/tre/commands/workspaces/operation.py/0
{ "file_path": "AzureTRE/cli/tre/commands/workspaces/operation.py", "repo_id": "AzureTRE", "token_count": 638 }
100
import click from .commands.costs import costs from .commands.health import health from .commands.migrations import migrations from tre.commands.get_token import get_token from tre.commands.login import login from tre.commands.api_call import call_api from tre.commands.workspaces.workspace import workspace from tre.co...
AzureTRE/cli/tre/main.py/0
{ "file_path": "AzureTRE/cli/tre/main.py", "repo_id": "AzureTRE", "token_count": 517 }
101
resource "azurerm_public_ip" "appgwpip" { name = "pip-agw-${var.tre_id}" resource_group_name = var.resource_group_name location = var.location allocation_method = "Static" # Static IPs are allocated immediately sku = "Standard" domain_name_label = var.tre_id t...
AzureTRE/core/terraform/appgateway/appgateway.tf/0
{ "file_path": "AzureTRE/core/terraform/appgateway/appgateway.tf", "repo_id": "AzureTRE", "token_count": 3317 }
102
resource "azurerm_cosmosdb_account" "mongo" { name = "cosmos-mongo-${var.tre_id}" location = azurerm_resource_group.core.location resource_group_name = azurerm_resource_group.core.name offer_type = "Standard" kind = "MongoDB" en...
AzureTRE/core/terraform/cosmos_mongo.tf/0
{ "file_path": "AzureTRE/core/terraform/cosmos_mongo.tf", "repo_id": "AzureTRE", "token_count": 1501 }
103
# Network security group for Azure Bastion subnet # See https://docs.microsoft.com/azure/bastion/bastion-nsg resource "azurerm_network_security_group" "bastion" { name = "nsg-bastion-subnet" location = var.location resource_group_name = var.resource_group_name tags = loc...
AzureTRE/core/terraform/network/network_security_groups.tf/0
{ "file_path": "AzureTRE/core/terraform/network/network_security_groups.tf", "repo_id": "AzureTRE", "token_count": 3935 }
104
#!/bin/bash set -o errexit set -o pipefail set -o nounset # set -o xtrace script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) core_rg_rid=$(terraform show -json | jq -r '.values.root_module.resources[] | select(.address=="azurerm_resource_group.core") | .values.id') echo "Current tags:" a...
AzureTRE/core/terraform/update_tags.sh/0
{ "file_path": "AzureTRE/core/terraform/update_tags.sh", "repo_id": "AzureTRE", "token_count": 557 }
105
#!/bin/bash set -o errexit set -o pipefail set -o nounset # Uncomment this line to see each command for debugging (careful: this will show secrets!) # set -o xtrace if [ "$(yq eval ".custom.runtime_image.build" porter.yaml)" == "null" ]; then echo "Runtime image build section isn't specified. Exiting..." exit 0 fi...
AzureTRE/devops/scripts/bundle_runtime_image_build.sh/0
{ "file_path": "AzureTRE/devops/scripts/bundle_runtime_image_build.sh", "repo_id": "AzureTRE", "token_count": 640 }
106
#!/bin/bash set -o errexit set -o pipefail set -o nounset # set -o xtrace # # Usage: # load_env.sh <.env file> # if [ ! -f "$1" ]; then if [ -z "${USE_ENV_VARS_NOT_FILES:-}" ]; then echo -e "\e[31m»»» 💥 Unable to find $1 file, please create file and try again!\e[0m" #exit fi else # Loop over the rele...
AzureTRE/devops/scripts/load_env.sh/0
{ "file_path": "AzureTRE/devops/scripts/load_env.sh", "repo_id": "AzureTRE", "token_count": 560 }
107
provider "azurerm" { features {} } # Resource group for TRE core management resource "azurerm_resource_group" "mgmt" { name = var.mgmt_resource_group_name location = var.location tags = { project = "Azure Trusted Research Environment" source = "https://github.com/microsoft/AzureTRE/" } lifec...
AzureTRE/devops/terraform/main.tf/0
{ "file_path": "AzureTRE/devops/terraform/main.tf", "repo_id": "AzureTRE", "token_count": 803 }
108
# Pre-deployment steps ## Setup Github Environment The workflows are using Github environment to source its environment variables. Follow [this guide](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#creating-an-environment) to define it in your github r...
AzureTRE/docs/tre-admins/setup-instructions/cicd-pre-deployment-steps.md/0
{ "file_path": "AzureTRE/docs/tre-admins/setup-instructions/cicd-pre-deployment-steps.md", "repo_id": "AzureTRE", "token_count": 2131 }
109
<!-- markdownlint-disable-file MD046 --> # Upgrading Resources Version Azure TRE workspaces, workspace services, workspace shared services, and user resources are [Porter](https://porter.sh/) bundles. Porter bundles are based on [Cloud Native Application Bundles (CNAB)](https://cnab.io/). When a new bundle version be...
AzureTRE/docs/tre-admins/upgrading-resources.md/0
{ "file_path": "AzureTRE/docs/tre-admins/upgrading-resources.md", "repo_id": "AzureTRE", "token_count": 784 }
110