relative_path
stringclasses
812 values
section
stringclasses
339 values
filename
stringlengths
2
61
text
stringlengths
6
1.76M
PyTorch/Forecasting/TFT/scripts
scripts
get_data
#!/bin/bash # Copyright (c) 2021-2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
PyTorch/Recommendation/DLRM/dlrm/cuda_src/dot_based_interact_volta
dot_based_interact_volta
pytorch_ops
#include <torch/extension.h> torch::Tensor dotBasedInteractFwdTorch(torch::Tensor input, torch::Tensor bottom_mlp_output); std::vector<torch::Tensor> dotBasedInteractBwdTorch(torch::Tensor input, torch::Tensor upstreamGrad); PY...
PaddlePaddle/LanguageModeling/BERT/bert_configs
bert_configs
bert-base-uncased
{ "attention_probs_dropout_prob": 0.1, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "max_position_embeddings": 512, "num_attention_heads": 12, "num_hidden_layers": 12, "type_vocab_size": 2, "vocab_size": 30522 }
TensorFlow/Detection/SSD/models/research/object_detection/g3doc
g3doc
running_locally
# Running Locally This page walks through the steps required to train an object detection model on a local machine. It assumes the reader has completed the following prerequisites: 1. The Tensorflow Object Detection API has been installed as documented in the [installation instructions](installation.md). This include...
PyTorch/Segmentation/MaskRCNN/pytorch/configs/gn_baselines
gn_baselines
e2e_faster_rcnn_R_50_FPN_1x_gn
INPUT: MIN_SIZE_TRAIN: 800 MAX_SIZE_TRAIN: 1333 MIN_SIZE_TEST: 800 MAX_SIZE_TEST: 1333 MODEL: META_ARCHITECTURE: "GeneralizedRCNN" WEIGHT: "catalog://ImageNetPretrained/MSRA/R-50-GN" BACKBONE: CONV_BODY: "R-50-FPN" OUT_CHANNELS: 256 RESNETS: # use GN for backbone TRANS_FUNC: "BottleneckWithG...
PyTorch/SpeechSynthesis/Tacotron2/notebooks/conversationalai/model_repo/bert-onnx
bert-onnx
config
name: "bert-onnx" platform: "onnxruntime_onnx" max_batch_size: 8 input [ { name: "input__0" data_type: TYPE_INT64 dims: [384] }, { name: "input__1" data_type: TYPE_INT64 dims: [384] }, { name: "input__2" data_type: TYPE_INT64 dims: [384] } ] output [ { name: "output__0" data_...
Tools/PyTorch/TimeSeriesPredictionPlatform/models/tft_pyt/triton/runner/maintainer
maintainer
__init__
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
TensorFlow/LanguageModeling/Transformer-XL/tf
tf
run_wt103_base
#!/bin/bash # Data DATA_ROOT=../data/wikitext-103/ # Model DIV_VAL=1 N_LAYER=16 D_MODEL=512 D_EMBED=512 N_HEAD=8 D_HEAD=64 D_INNER=2048 # Training TGT_LEN=192 MEM_LEN=192 NUM_CORE=${2:-"8"} # Testing TEST_TGT_LEN=64 TEST_MEM_LEN=640 TEST_CLAMP_LEN=400 TEST_NUM_CORE=1 if [[ $1 == 'train_data' ]]; then python...
TensorFlow/LanguageModeling/BERT
BERT
run_ner
#! usr/bin/env python3 # -*- coding:utf-8 -*- """ Copyright 2018 The Google AI Language Team Authors. BASED ON Google_BERT. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import os, sys import pickle import tensorflow as tf import nu...
TensorFlow2/Segmentation/nnUNet/runtime
runtime
metrics
# Copyright (c) 2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyTorch/Segmentation/MaskRCNN/pytorch/maskrcnn_benchmark/config
config
paths_catalog_ci
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. """Centralized catalog of paths.""" import os class DatasetCatalog(object): DATA_DIR = "/data2/coco/coco-2017" DATASETS = { "coco_2017_train": { "img_dir"...
PaddlePaddle/Classification/RN50v1.5
RN50v1.5
dali
# Copyright (c) 2022 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyTorch/SpeechRecognition/wav2vec2
wav2vec2
README
# wav2vec 2.0 for PyTorch This repository provides a script and recipe to train the wav2vec 2.0 model to achieve state-of-the-art accuracy. The content of this repository is tested and maintained by NVIDIA. ## Table Of Contents - [Model overview](#model-overview) * [Model architecture](#model-architecture) *...
CUDA-Optimized/FastSpeech/fastspeech/utils
utils
hparam
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditio...
CUDA-Optimized/FastSpeech/scripts
scripts
prepare_dataset
#!/usr/bin/env bash set -e # Download dataset DATADIR="LJSpeech-1.1" BZ2ARCHIVE="${DATADIR}.tar.bz2" ENDPOINT="http://data.keithito.com/data/speech/$BZ2ARCHIVE" if [ ! -d "$DATADIR" ]; then echo "dataset is missing, unpacking ..." if [ ! -f "$BZ2ARCHIVE" ]; then echo "dataset archive is missing, downloading ...
PyTorch/LanguageModeling/BERT/triton/runner
runner
__init__
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
TensorFlow2/Classification/ConvNets/efficientnet_v1/B4/evaluation
evaluation
evaluation_FP32_V100-32G
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyTorch/Segmentation/nnUNet/scripts
scripts
train
# Copyright (c) 2021-2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
TensorFlow2/Recommendation/DLRM_and_DCNv2/preproc/gpu
gpu
get_gpu_resources
# Copyright (c) 2023, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyTorch/LanguageModeling/BERT
BERT
run_squad
# coding=utf-8 # Copyright (c) 2019-2021 NVIDIA CORPORATION. All rights reserved. # Copyright 2018 The Google AI Language Team Authors and The HugginFace 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 cop...
PyTorch/Forecasting/TFT/triton/deployment_toolkit/bermuda
bermuda
__init__
# Copyright (c) 2021-2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
PyTorch/SpeechSynthesis/Tacotron2/trtis_cpp/src/test
test
JSONModelImporter_test
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this l...
TensorFlow/Classification/ConvNets/se-resnext101-32x4d/training
training
DGX2_SE-RNxt101-32x4d_AMP_90E
#!/bin/bash # Copyright (c) 2019 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
PyTorch/LanguageModeling/BERT/triton/deployment_toolkit/perf_analyzer
perf_analyzer
exceptions
class PerfAnalyzerException(Exception): def __init__(self, message: str): self._message = message def __str__(self): """ Get the exception string representation. Returns ------- str The message associated with this exception, or None if no message. ...
PyTorch/Detection/Efficientdet/effdet/layers
layers
pool2d_same
""" AvgPool2d w/ Same Padding Hacked together by / Copyright 2020 Ross Wightman """ # Copyright (c) 2021, 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...
PyTorch/Forecasting/TFT/triton/runner
runner
__main__
# Copyright (c) 2021-2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
TensorFlow/Recommendation/WideAndDeep/scripts
scripts
DGXA100_benchmark_training_amp_8gpu
#!/bin/bash # Copyright (c) 2020, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
TensorFlow/Detection/SSD/models/research/object_detection/predictors/heads
heads
mask_head_test
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
PyTorch/SpeechSynthesis/Tacotron2/tensorrt
tensorrt
inference_trt
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
TensorFlow/LanguageModeling/BERT/data
data
TextSharding
# Copyright (c) 2019 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
TensorFlow/Classification/ConvNets/triton/deployment_toolkit/library
library
tf2trt_conv
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
TensorFlow/Segmentation/UNet_Medical/utils
utils
data_loader
# Copyright (c) 2019, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyTorch/SpeechSynthesis/Tacotron2/notebooks
notebooks
Tacotron2
#!/usr/bin/env python # coding: utf-8 # In[ ]: # Copyright 2019 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 # # http://www.apache.org/licen...
PyTorch/SpeechSynthesis/Tacotron2/notebooks/conversationalai/model_repo/bertQA-ts-script
bertQA-ts-script
config
name: "bertQA-ts-script" platform: "pytorch_libtorch" max_batch_size: 8 input [ { name: "input__0" data_type: TYPE_INT64 dims: [384] }, { name: "input__1" data_type: TYPE_INT64 dims: [384] }, { name: "input__2" data_type: TYPE_INT64 dims: [384] } ] output [ { name: "output__0" ...
PyTorch/Segmentation/MaskRCNN/pytorch
pytorch
test_fp16
#!/bin/bash # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. #Script for PyT CI #CONFIG: 1x8x12 RESULTS_DIR='maskrcnn_coco2017_test' REPO_DIR='/opt/pytorch/examples/Detectron_PyT/pytorch' CONFIG='configs/e2e_mask_rcnn_R_50_FPN_1x.yaml' LOGFILE=$REPO_DIR/results/$RESULTS_DIR/log_gpu_0_fp16.log mkdir -p $...
PyTorch/Classification/GPUNet/triton/scripts/docker
docker
build
#!/usr/bin/env bash # Copyright (c) 2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
Tools/PyTorch/TimeSeriesPredictionPlatform/training
training
utils
# Copyright (c) 2021-2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
Kaldi/SpeechRecognition/kaldi-asr-backend
kaldi-asr-backend
kaldi-backend-utils
// Copyright (c) 2020-2021, 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
PyTorch/Classification/ConvNets/triton/se-resnext101-32x4d
se-resnext101-32x4d
README
# Deploying the SE-ResNeXt101-32x4d model using Triton Inference Server The [NVIDIA Triton Inference Server](https://github.com/NVIDIA/triton-inference-server) provides a datacenter and cloud inferencing solution optimized for NVIDIA GPUs. The server provides an inference service via an HTTP or gRPC endpoint, allowing...
TensorFlow2/Classification/ConvNets/efficientnet_v1/B0/training/FP32
FP32
train_benchmark_8xV100-32G
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyTorch/SpeechSynthesis/FastPitch/scripts
scripts
download_models
#!/usr/bin/env bash set -e MODEL_NAMES="$@" [ -z "$MODEL_NAMES" ] && { echo "Usage: $0 [fastpitch|waveglow|hifigan|hifigan-finetuned-fastpitch]"; exit 1; } function download_ngc_model() { mkdir -p "$MODEL_DIR" if [ ! -f "${MODEL_DIR}/${MODEL_ZIP}" ]; then echo "Downloading ${MODEL_ZIP} ..." wget --conte...
PyTorch/Segmentation/MaskRCNN/pytorch
pytorch
setup
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #!/usr/bin/env python import glob import os import torch from setuptools import find_packages from setuptools import setup from torch.utils.cpp_extension import CUDA_HOME from torch.utils.cpp_extension import CppExtension from torch.utils.cpp_ext...
PyTorch/LanguageModeling/BERT/distillation/utils
utils
data_utils
# coding=utf-8 # Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
PyTorch/LanguageModeling/Transformer-XL/pytorch
pytorch
wt103_base
# Base wt103: &wt103 dataset: wt103 data: ../data/wikitext-103/ train: &train <<: *wt103 cuda: true n_layer: 16 d_model: 512 n_head: 8 d_head: 64 d_inner: 2048 dropout: 0.1 dropatt: 0.0 optim: jitlamb lr: 0.01 eta_min: 0.001 roll: true warmup_step: 1000 max_step: 4000...
TensorFlow2/Segmentation/Contrib/UNet3P
UNet3P
README
# UNet 3+: A Full-Scale Connected UNet for Medical Image Segmentation [![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/unet-3-a-full-scale-connected-unet-for/medical-image-segmentation-on-lits2017)](https://paperswithcode.com/sota/medical-image-segmentation-on-lits2017?p=unet-3-a-full-s...
PyTorch/SpeechSynthesis/Tacotron2/phrases
phrases
phrase_1_64
She sells seashells by the seashore, shells she sells are great
TensorFlow/Detection/SSD/models/research/slim/nets
nets
lenet
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
TensorFlow2/LanguageModeling/BERT/official/nlp/modeling/networks
networks
bert_span_labeler
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
TensorFlow/Classification/ConvNets/model/layers
layers
padding
# 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
TensorFlow/Classification/ConvNets/utils
utils
hvd_wrapper
hvd_global_object = None def init(use_horovod: bool = False): global hvd_global_object if use_horovod: import horovod.tensorflow as hvd hvd.init() hvd_global_object = hvd else: class _DummyWrapper: def rank(self): return 0 def size(self): return 1 ...
PyTorch/SpeechSynthesis/Tacotron2/trtis_cpp/trtis_client/src
src
WaveFileWriter
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this l...
PyTorch/SpeechSynthesis/Tacotron2/platform
platform
DGXA100_waveglow_TF32_8NGPU_train
mkdir -p output python -m multiproc train.py -m WaveGlow -o output/ -lr 1e-4 --epochs 1001 -bs 4 --segment-length 8000 --weight-decay 0 --grad-clip-thresh 3.4028234663852886e+38 --cudnn-benchmark --cudnn-enabled --log-file nvlog.json
TensorFlow2/Recommendation/DLRM_and_DCNv2/nn
nn
embedding
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
TensorFlow2/Recommendation/DLRM_and_DCNv2/deployment/deployment_toolkit
deployment_toolkit
core
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyTorch/Translation/Transformer/fairseq/data
data
indexed_dataset
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import os import struct import nu...
PyTorch/Detection/Efficientdet/scripts
scripts
bind
#! /bin/bash set -euo pipefail print_usage() { cat << EOF ${0} [options] [--] COMMAND [ARG...] Control binding policy for each task. Assumes one rank will be launched for each GPU. Options: --cpu=MODE * exclusive -- bind each rank to an exclusive set of cores near its GPU * exclusive,nosmt --...
TensorFlow2/LanguageModeling/BERT/official/utils/logs
logs
logger_test
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
TensorFlow/Segmentation/UNet_3D_Medical/model
model
model_fn
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
TensorFlow/Recommendation/NCF
NCF
convert
# Copyright (c) 2018, deepakn94, codyaustun, robieta. 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...
PyTorch/SpeechRecognition/wav2vec2/common/fairseq/data
data
data_utils
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may n...
PyTorch/SpeechSynthesis/Tacotron2/filelists
filelists
ljs_audio_text_train_filelist
LJSpeech-1.1/wavs/LJ050-0234.wav|It has used other Treasury law enforcement agents on special experiments in building and route surveys in places to which the President frequently travels. LJSpeech-1.1/wavs/LJ019-0373.wav|to avail himself of his powers, as it was difficult to bring home the derelictions of duties and e...
TensorFlow2/Detection/Efficientdet/model
model
optimizer_builder
# Copyright 2020 Google Research. 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...
PyTorch/SpeechSynthesis/Tacotron2/trtis_cpp/src/trt/plugins/taco2DenoiseTransformPlugin
taco2DenoiseTransformPlugin
CMakeLists
# # Copyright (c) 2019, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
TensorFlow2/Segmentation/nnUNet/scripts
scripts
benchmark
# Copyright (c) 2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyTorch/Classification/GPUNet/triton/runner
runner
requirements
# Copyright (c) 2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PaddlePaddle/LanguageModeling/BERT
BERT
squad_utils
# Copyright (c) 2022 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
TensorFlow/Detection/SSD
SSD
download_all
#!/usr/bin/env bash # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
TensorFlow/Classification/ConvNets/triton/deployment_toolkit
deployment_toolkit
warmup
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyTorch/Forecasting/TFT/triton/deployment_toolkit/perf_analyzer
perf_analyzer
perf_analyzer
# Copyright (c) 2021-2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
TensorFlow2/LanguageModeling/ELECTRA/data
data
TextSharding
# Copyright (c) 2019 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
Tools/PyTorch/TimeSeriesPredictionPlatform/models/tft_pyt/scripts
scripts
run_electricity_DGX1-16G
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
TensorFlow2/Detection/Efficientdet/efficientnet/layers
layers
__init__
from efficientnet.layers.activations import simple_swish, hard_swish, identity, gelu, get_activation __all__ = ['simple_swish', 'hard_swish', 'identity', 'gelu', 'get_activation']
PyTorch/SpeechSynthesis/Tacotron2/trtis_cpp/src/trt/util
util
characterMapping
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this l...
PyTorch/Detection/Efficientdet/effdet/layers
layers
helpers
""" Layer/Module Helpers Hacked together by / Copyright 2020 Ross Wightman """ # Copyright (c) 2021, 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 ...
PyTorch/SpeechSynthesis/HiFiGAN/common/text/unidecoder
unidecoder
replacements
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
PyTorch/SpeechSynthesis/FastPitch/platform
platform
DGXA100_FastPitch_AMP_4GPU
#!/bin/bash set -a : ${NUM_GPUS:=4} : ${BATCH_SIZE:=32} : ${GRAD_ACCUMULATION:=2} : ${AMP:=true} bash scripts/train.sh "$@"
PyTorch/SpeechSynthesis/Tacotron2/notebooks/conversationalai/model_repo/waveglow-trt
waveglow-trt
config
name: "waveglow-trt" platform: "tensorrt_plan" default_model_filename: "waveglow_fp16.engine" max_batch_size: 0 input { name: "mel" data_type: TYPE_FP16 dims: [1, 80, -1] } input { name: "z" data_type: TYPE_FP16 dims: [1, 8, -1] } output { name: "audio" data_type: TYPE_FP16 dims: [1, -1] }
TensorFlow/Segmentation/UNet_3D_Medical/runtime
runtime
setup
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
TensorFlow2/Recommendation/WideAndDeep/triton/runner
runner
start_NVIDIA-A30
# Copyright (c) 2021-2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
TensorFlow/Detection/SSD/models/research/object_detection/utils
utils
variables_helper
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
PyTorch/Segmentation/MaskRCNN/pytorch/maskrcnn_benchmark/data/datasets
datasets
voc
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. import os import torch import torch.utils.data from PIL import Image import sys if sys.version_info[0] == 2: import xml.etree.cElementTree as ET else: import xml.etree.ElementTree as ET from maskrcnn_benchmark.structures.bounding_box import Box...
TensorFlow/LanguageModeling/Transformer-XL/tf
tf
lamb
# Copyright (c) 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
TensorFlow/Segmentation/UNet_Industrial/utils
utils
image_processing
# !/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================== # # Copyright (c) 2019, 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 ...
TensorFlow2/Recommendation/WideAndDeep
WideAndDeep
main
# Copyright (c) 2021-2022, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
CUDA-Optimized/FastSpeech/fastspeech/inferencer
inferencer
__init__
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditio...
PyTorch/SpeechSynthesis/Tacotron2/tacotron2
tacotron2
model
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
TensorFlow/Detection/SSD/models/research/object_detection/box_coders
box_coders
faster_rcnn_box_coder_test
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
TensorFlow2/Segmentation/UNet_Medical/runtime
runtime
arguments
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyTorch/Recommendation/DLRM/tests/feature_specs
feature_specs
different_paths
channel_spec: categorical: - cat_0.bin - cat_1.bin - cat_2.bin - cat_3.bin - cat_4.bin - cat_5.bin - cat_6.bin - cat_7.bin - cat_8.bin - cat_9.bin - cat_10.bin - cat_11.bin - cat_12.bin - cat_13.bin - cat_14.bin - cat_15.bin - cat_16.bin - cat_17.bin - cat_18.bin - cat_19.bin ...
PyTorch/LanguageModeling/Transformer-XL/pytorch/utils
utils
data_parallel
import torch from torch.nn.parallel import DataParallel from torch.nn.parallel._functions import Scatter from torch.nn.parallel.parallel_apply import parallel_apply def scatter(inputs, target_gpus, chunk_sizes, dim=0): r""" Slices tensors into approximately equal chunks and distributes them across given G...
PyTorch/SpeechRecognition/wav2vec2/common/fairseq/optim
optim
dynamic_loss_scaler
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may n...
PyTorch/LanguageModeling/BART/scripts
scripts
get_data
#!/usr/bin/env bash # Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
TensorFlow2/Detection/Efficientdet/dataset
dataset
create_coco_tfrecord
# Copyright 2020 Google Research. 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...
PyTorch/SpeechRecognition/Jasper
Jasper
README
# Jasper For PyTorch This repository provides scripts to train the Jasper model to achieve near state of the art accuracy and perform high-performance inference using NVIDIA TensorRT. This repository is tested and maintained by NVIDIA. ## Table Of Contents - [Model overview](#model-overview) * [Model architecture]...
PyTorch/LanguageModeling/BERT/triton/deployment_toolkit/perf_analyzer
perf_analyzer
perf_config
# Copyright (c) 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
TensorFlow/Segmentation/UNet_Industrial/scripts
scripts
UNet_8GPU
#!/usr/bin/env bash # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
PyTorch/SpeechSynthesis/Tacotron2/trtis_cpp/src/trt/util
util
random
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this l...
PyTorch/Detection/Efficientdet
Efficientdet
train
#!/usr/bin/env python """ EfficientDet Training Script This script was started from an early version of the PyTorch ImageNet example (https://github.com/pytorch/examples/tree/master/imagenet) NVIDIA CUDA specific speedups adopted from NVIDIA Apex examples (https://github.com/NVIDIA/apex/tree/master/examples/imagenet)...
PyTorch/SpeechSynthesis/Tacotron2/trtis_cpp/src/trt/layers
layers
attentionLayerCreator
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this l...
TensorFlow2/Segmentation/Contrib/UNet3P/losses
losses
unet_loss
""" UNet 3+ Loss """ from .loss import focal_loss, ssim_loss, iou_loss def unet3p_hybrid_loss(y_true, y_pred): """ Hybrid loss proposed in UNET 3+ (https://arxiv.org/ftp/arxiv/papers/2004/2004.08790.pdf) Hybrid loss for segmentation in three-level hierarchy – pixel, patch and map-level, which is a...