index int64 0 0 | repo_id stringlengths 15 98 | file_path stringlengths 33 130 | content stringlengths 27 14.4M |
|---|---|---|---|
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-alibi-bf16-1796229.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-alibi-bf16-nokernel-1799767.out | noua-meg-ds/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --train-samp... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-alibi-fp32-nokernel-1799771.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-3-adam-zero-1793514.out | Megatron-DeepSpeed/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --tra... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-nokernel-1796297.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-nokernel-1796297.out | noua-meg-ds/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --train-samp... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-1793736.out | Megatron-DeepSpeed/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --tra... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-alibi-nods-1814186.out | Megatron-DeepSpeed-orig/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 ... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-alibi-bf16-1804475.out | Megatron-DeepSpeed/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --tra... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-alibi-fp32-1796300.out | Megatron-DeepSpeed/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --tra... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-2-1793438.out | Megatron-DeepSpeed/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --tra... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-3-adam-fp32-1793501.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-alibi-fp32-1796300.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-2-adam-1793488.out | Megatron-DeepSpeed/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --tra... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-alibi-fp32-1796300.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-2-adam-1793488.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-1-1793404.out | Megatron-DeepSpeed/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --tra... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-alibi-fp32-1805002.out | Megatron-DeepSpeed/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --tra... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-alibi-1805094.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-alibi-fp32-1796300.out | Megatron-DeepSpeed/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --tra... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-alibi-fp32-1805002.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-alibi-1794235.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-3-adam-nokernel-1793763.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-3-adam-gpu1-1793503.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-alibi-gpu1-1813779.out | Megatron-DeepSpeed-orig/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 ... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-alibi-bf16-nods-1814592.out | Megatron-DeepSpeed-orig/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 ... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-1793736.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-adam-alibi-fp32-nokernel-1799771.out | noua-meg-ds/pretrain_gpt.py --tensor-model-parallel-size 1 --pipeline-model-parallel-size 1 --num-layers 24 --hidden-size 1024 --num-attention-heads 16 --ffn-hidden-size 4096 --seq-length 2048 --max-position-embeddings 2048 --micro-batch-size 16 --global-batch-size 512 --rampup-batch-size 128 128 2_000_000 --train-samp... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-3-adam-1793490.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/logs/blowup-4-alibi-nods-1814186.err | 0: launch.sh: line 2: : command not found
0: launch.sh: line 5: : command not found
0: launch.sh: line 12: : command not found
0: launch.sh: line 15: : command not found
0: launch.sh: line 17: : command not found
0: launch.sh: line 20: : command not found
0: /opt/amdgpu/share/libdrm/amdgpu.ids: No such file or di... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/docs/cluster_setup.md | # Permissions
Add 'umask 007` to your `.bashrc` (`~/.bashrc`) to make your new files automatically seeable and editable by the rest of the project.
You can recursively fix a brokens-perm folder by running:
```
wd=/scratch/project_462000119 #YOUR_DIRECTORY_HERE
find $wd -user `whoami` -type d ! \( -readable -executabl... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/docs/stability_study.md | # Stability study
## Issue
Sampo found that the same training scripts (reused from BigScience), with the same setups, converge on puhti (V100 / cuda) but diverge on LUMI (MI250X / ROCm). Loss eventually always blows up, even after going down to as low as 3. We're searching for an element that's different between CUDA... |
0 | hf_public_repos/datablations/stability_study/docs | hf_public_repos/datablations/stability_study/docs/chronicles/gotchas.md | ### Annoying NCCL error without NCCL_SOCKET_IFNAME
```
work = default_pg.barrier(opts=opts)
RuntimeError: NCCL error in: ../torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:1191, unhandled system error, NCCL version 2.11.4
ncclSystemError: System call (e.g. socket, malloc) or external library call failed or device err... |
0 | hf_public_repos/datablations/stability_study/docs | hf_public_repos/datablations/stability_study/docs/chronicles/questions.md | ### A node has 4 MI250X and a MI250X has two GCD devices inside. How many GPUs per node is that?
Pytorch sees every GCD as a GPU, so there's 8 GPUs/devices per node
|
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/hf-benchmark/gpt2_adafactor.sh | #!/bin/bash
#SBATCH --job-name=gpt2_adafactor
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=40
#SBATCH --mem=256G
#SBATCH -p pilot
#SBATCH -t 12:00:00
#SBATCH --gpus-per-node=mi250:8
#SBATCH --exclusive=user
#SBATCH --hint=nomultithread
#SBATCH --account=project_462000119
#SBATCH -o logs/%x-%j.... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/hf-benchmark/gpt2.sh | #!/bin/bash
#SBATCH --job-name=gpt2
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=40
#SBATCH --mem=256G
#SBATCH -p pilot
#SBATCH -t 12:00:00
#SBATCH --gpus-per-node=mi250:8
#SBATCH --exclusive=user
#SBATCH --hint=nomultithread
#SBATCH --account=project_462000119
#SBATCH -o logs/%x-%j.out
#SBATC... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/hf-benchmark/gpt2_compare.sh | #!/bin/bash
#SBATCH --job-name=gpt2_compare
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=40
#SBATCH --mem=256G
#SBATCH -p pilot
#SBATCH -t 12:00:00
#SBATCH --gpus-per-node=mi250:8
#SBATCH --exclusive=user
#SBATCH --hint=nomultithread
#SBATCH --account=project_462000119
#SBATCH -o logs/%x-%j.ou... |
0 | hf_public_repos/datablations/stability_study | hf_public_repos/datablations/stability_study/hf-benchmark/gpt2_apex.sh | #!/bin/bash
#SBATCH --job-name=gpt2_apex
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=40
#SBATCH --mem=256G
#SBATCH -p pilot
#SBATCH -t 12:00:00
#SBATCH --gpus-per-node=mi250:8
#SBATCH --exclusive=user
#SBATCH --hint=nomultithread
#SBATCH --account=project_462000119
#SBATCH -o logs/%x-%j.out
#... |
0 | hf_public_repos | hf_public_repos/instruction-tuned-sd/requirements.txt | torchvision
accelerate
diffusers
transformers
numpy
datasets
wandb
black~=23.1
isort>=5.5.4
ruff>=0.0.241,<=0.0.259 |
0 | hf_public_repos | hf_public_repos/instruction-tuned-sd/train_instruct_pix2pix.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2023 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... |
0 | hf_public_repos | hf_public_repos/instruction-tuned-sd/README.md | # Instruction-tuning Stable Diffusion
**TL;DR**: Motivated partly by [FLAN](https://arxiv.org/abs/2109.01652) and partly by [InstructPix2Pix](https://arxiv.org/abs/2211.09800), we explore a way to instruction-tune [Stable Diffusion](https://stability.ai/blog/stable-diffusion-public-release). This allows us to prompt o... |
0 | hf_public_repos | hf_public_repos/instruction-tuned-sd/Makefile | check_dirs := .
quality:
black --check $(check_dirs)
ruff $(check_dirs)
style:
black $(check_dirs)
ruff $(check_dirs) --fix |
0 | hf_public_repos | hf_public_repos/instruction-tuned-sd/finetune_instruct_pix2pix.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2023 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... |
0 | hf_public_repos | hf_public_repos/instruction-tuned-sd/LICENSE | Copyright 2023- The HuggingFace Inc. team and The InstructPix2Pix Authors. All rights reserved.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
... |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/validation/compare_models.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2023 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... |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/validation/requirements.txt | tensorflow
tensorflow_datasets==4.6.0
datasets
huggingface_hub
numpy
Pillow
opencv-python
torch==1.13.1
torchvision==0.14.1 |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/validation/README.md | This directory provides utilities to visually compare the results of different models:
* [sayakpaul/whitebox-cartoonizer](https://hf.co/sayakpaul/whitebox-cartoonizer) (TensorFlow)
* [instruction-tuning-vision/instruction-tuned-cartoonizer](https://hf.co/sayakpaul/instruction-tuning-vision/instruction-tuned-cartoonize... |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/validation/data_utils.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2023 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... |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/data_preparation/model_utils.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2023 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... |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/data_preparation/generate_dataset.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2023 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... |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/data_preparation/requirements.txt | tensorflow
tensorflow_datasets==4.6.0
datasets
huggingface_hub
numpy
Pillow
opencv-python
protobuf==3.20.* |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/data_preparation/README.md | This directory provides utilities to create a Cartoonizer dataset for [InstructPix2Pix](https://arxiv.org/abs/2211.09800) like training.
## Steps
We used 5000 randomly sampled images as the original images from the `train` set of [ImageNette](https://www.tensorflow.org/datasets/catalog/imagenette). To derive their
c... |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/data_preparation/image_utils.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2023 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... |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/data_preparation/export_to_hub.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2023 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... |
0 | hf_public_repos/instruction-tuned-sd | hf_public_repos/instruction-tuned-sd/data_preparation/instructions.txt | Transform the natural image into a cartoon.
Create a cartoon-style image from the natural image.
Apply a cartoon filter to the natural image.
Turn the natural image into a cartoon-style drawing.
Give the natural image a cartoon effect.
Convert the natural image to a cartoon-like illustration.
Make the natural image loo... |
0 | hf_public_repos | hf_public_repos/workshops/README.md | # 🤗 Workshops
Materials for workshops on the Hugging Face ecosystem
|
0 | hf_public_repos | hf_public_repos/workshops/LICENSE | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/europython-2022/01-transformers-tour.ipynb | from IPython.display import YouTubeVideo
YouTubeVideo('1pedAIvTWXk')import textwrap
wrapper = textwrap.TextWrapper(width=80, break_long_words=False, break_on_hyphens=False)text = """Dear Amazon, last week I ordered an Optimus Prime action figure \
from your online store in Germany. Unfortunately, when I opened the pack... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/europython-2022/README.md | # Europython 2022
> Here you can find all the materials for the Europython 2022 "How To Train Your Graphics Card To Read" workshop!
## Getting started
The address for this repo is **https://github.com/huggingface/workshops**
If you want to follow along, make sure you have:
* Signed up for a Hugging Face account: h... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/europython-2022/03-gradio-demo.ipynb | # !pip install transformers gradio sentencepieceimport gradio as gr
from transformers import pipelinepipe = pipeline("text-classification", model="Rocketknight1/europython-imdb")pipe("This was the most boring 94 minutes of my life.")label2emoji = {"Negative": "💩", "Positive": "😻"}
def predict(text):
preds = pipe... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/europython-2022/02-text-classification.ipynb | #! pip install datasets transformers sentencepiece# !apt install git-lfsfrom datasets import load_dataset
dataset = load_dataset("imdb")
datasetdataset['train']# View the first element
dataset['train'][0]dataset["train"][:3]dataset["train"]["label"][:20]dataset["train"][-1]texts = dataset["train"]["text"]
labels = dat... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/datacamp-webinar/README.md | # Generating Photorealistic Images using AI with Diffusers in Python
Contains Colab Notebook and Slides for our DataCamp webinar: [Generating Photorealistic Images using AI with Diffusers in Python](https://www.datacamp.com/webinars/Generating-photorealistic-images-using-ai-with-diffusers-python).
## Getting started
... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/datacamp-webinar/diffusers-webinar.ipynb | from diffusers import DiffusionPipeline
pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5").to("cuda")
prompt = "sailing ship in storm by Leonardo da Vinci"
images = pipeline(prompt=prompt).images
images[0]import torch
seed = 1554 #@param {type:"integer"}
images = pipeline(prompt=prompt, ... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/nlp-zurich/01-transformers_tour.ipynb | from IPython.display import YouTubeVideo
YouTubeVideo('1pedAIvTWXk')import textwrap
wrapper = textwrap.TextWrapper(width=80, break_long_words=False, break_on_hyphens=False)text = """Dear Amazon, last week I ordered an Optimus Prime action figure \
from your online store in Germany. Unfortunately, when I opened the pack... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/nlp-zurich/README.md | # NLP Zurich
> Here you can find all the materials for the NLP Zurich workshop!
## Getting started
If you want to follow along, make sure you have:
* Signed up for a Hugging Face account: https://huggingface.co/join
* Signed up to Google Colab so you can run code on free GPUs: https://colab.research.google.com/
* J... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/nlp-zurich/03-gradio-demo.ipynb | # !pip install transformers gradio sentencepieceimport gradio as gr
from transformers import pipelinepipe = pipeline("text-classification", model="lewtun/xlm-roberta-base-finetuned-marc-de")pipe("This tennis racquet is amazing!")label2emoji = {"terrible": "💩", "poor": "😾", "ok": "🐱", "good": "😺", "great": "😻"}
de... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/nlp-zurich/02-text-classification.ipynb | #! pip install datasets transformers sentencepiecefrom huggingface_hub import notebook_login
notebook_login()# !apt install git-lfsfrom IPython.display import YouTubeVideo
YouTubeVideo("_BZearw7f0w", width=600, height=400)from datasets import get_dataset_config_names
dataset_name = "amazon_reviews_multi"
langs = get... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/bosch/dynamic-quantization.ipynb | %pip install "optimum[onnxruntime]" "evaluate[evaluator]" sklearnimport datasets
datasets.logging.set_verbosity_error()
%env TOKENIZERS_PARALLELISM=falsefrom pathlib import Path
from optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer
model_id = "optimum/distilbert-ba... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/bosch/README.md | # Bosch Workshop
> Here you can find all the materials for the Bosch workshop!
## Slides
You can find slides for the workshops at the links below:
* [Accelerating Transformers with 🤗 Optimum](https://docs.google.com/presentation/d/1UOcmrbsLVUTKnAUsYEcCIXFmZLPv17-HINQycRa-kqg/edit?usp=sharing)
## Getting started
... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/ai-superstream/README.md | # AISuperstream: NLP in Production
> Here you can find all the materials for the workshop on _Accelerating Transformers with Hugging Face Optimum_ at O'Reilly's [AI Superstream: NLP in Production](https://learning.oreilly.com/live-events/ai-superstream-nlp-in-production/0636920064955/0636920064953/)!
## Getting start... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/ai-superstream/optimum-tour.ipynb | import IPython
IPython.display.IFrame("https://hf.space/gradioiframe/abidlabs/question-answering-simple/+", width=1200, height=800)from transformers import AutoTokenizer, AutoModelForQuestionAnswering, pipeline
model = AutoModelForQuestionAnswering.from_pretrained("deepset/roberta-base-squad2")
tokenizer = AutoTokeni... |
0 | hf_public_repos/workshops/transformers-book-reading-group | hf_public_repos/workshops/transformers-book-reading-group/session-1/01_tour_of_transformers.ipynb | # Uncomment and run this cell if you're on Colab or Kaggle
!git clone https://github.com/nlp-with-transformers/notebooks.git
%cd notebooks
from install import *
install_requirements()#hide
from utils import *
setup_chapter()text = """Dear Amazon, last week I ordered an Optimus Prime action figure \
from your online sto... |
0 | hf_public_repos/workshops/transformers-book-reading-group | hf_public_repos/workshops/transformers-book-reading-group/session-3/Chapter_3.ipynb | import math
import torch
import torch.nn as nn
import torch.nn.functional as Fvocab_size = 20
embedding_dim = 512
dropout_prob = 0.5
num_heads = 8
seq_len = 5
embedding_layer = nn.Embedding(vocab_size, embedding_dim)
input_ids = torch.randint(low=0, high=vocab_size, size=(1, seq_len))
embeddings = embedding_layer(input... |
0 | hf_public_repos/workshops/transformers-book-reading-group | hf_public_repos/workshops/transformers-book-reading-group/session-2/slides.ipynb | import os
import psutil
from datasets import load_dataset
mem_before = psutil.Process(os.getpid()).memory_info().rss / (1024**2)
stack_smol = load_dataset("bigcode/the-stack-smol", split="train")
mem_after = psutil.Process(os.getpid()).memory_info().rss / (1024**2)
print(f"RAM usage when loading a {stack_smol.data... |
0 | hf_public_repos/workshops/transformers-book-reading-group/session-2 | hf_public_repos/workshops/transformers-book-reading-group/session-2/images/tokenization_pipeline.svg | <svg width="1776" height="1276" viewBox="0 0 1776 1276" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="1776" height="1276" fill="white"/>
<rect x="0.5" y="52.5" width="911" height="134" rx="13.5" fill="#F6F3FF" stroke="#D7DDFF"/>
<rect x="0.5" y="318.5" width="911" height="134" rx="13.5" fill="#F6F3FF" st... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/luzern-university/01_transformers_tour.ipynb | from IPython.display import YouTubeVideo
YouTubeVideo('1pedAIvTWXk')import textwrap
wrapper = textwrap.TextWrapper(width=80, break_long_words=False, break_on_hyphens=False)text = """Dear Amazon, last week I ordered an Optimus Prime action figure \
from your online store in Germany. Unfortunately, when I opened the pack... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/luzern-university/04-text-generation.ipynb | #! pip install datasets transformers sentencepiecefrom huggingface_hub import notebook_login
notebook_login()# !apt install git-lfsfrom IPython.display import YouTubeVideo
YouTubeVideo("_BZearw7f0w", width=600, height=400)from datasets import load_dataset
raw_datasets = load_dataset("tiny_shakespeare")
raw_datasetsY... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/luzern-university/06-stable-diffusion-gradio.ipynb | #! pip install diffusers transformers ftfy gradiofrom huggingface_hub import notebook_login
notebook_login()import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.float16 if device == "cuda" else Nonefrom diffusers import StableDiffusionPipeline
model_id = "CompVis/stable-diffusion-... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/luzern-university/README.md | # Luzern University of Applied Sciences and Arts
> Here you can find all the materials for the guest lectures at the [Luzern University of Applied Sciences and Arts](https://www.hslu.ch/en/)!
## Slides
You can find slides for the workshops at the links below.
### 2021
* [Getting Started with Transformers](https://... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/luzern-university/05-stable-diffusion.ipynb | #! pip install diffusers transformers ftfyfrom huggingface_hub import notebook_login
notebook_login()import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.float16 if device == "cuda" else Noneimport torch
from diffusers import StableDiffusionPipeline
model_id = "CompVis/stable-diff... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/luzern-university/03-gradio-demo.ipynb | # !pip install transformers gradio sentencepieceimport gradio as gr
from transformers import pipelinepipe = pipeline("text-classification", model="lewtun/xlm-roberta-base-finetuned-marc-en")pipe("The Lord of the Rings is waaay too long to read!!")label2emoji = {"terrible": "💩", "poor": "😾", "ok": "🐱", "good": "😺", ... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/luzern-university/02-text-classification.ipynb | #! pip install datasets transformers sentencepiecefrom huggingface_hub import notebook_login
notebook_login()# !apt install git-lfsfrom IPython.display import YouTubeVideo
YouTubeVideo("_BZearw7f0w", width=600, height=400)from datasets import get_dataset_config_names
dataset_name = "amazon_reviews_multi"
langs = get... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/fewshot-learning-in-production/setfit-optimisation.ipynb | %pip install setfit neural_compressor optimum[onnxruntime]==1.5.0 onnxruntime_extensionsimport datasets
datasets.logging.set_verbosity_error()
%env TOKENIZERS_PARALLELISM=falsefrom huggingface_hub import notebook_login
notebook_login()from pathlib import Path
from time import perf_counter
import evaluate
import num... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/fewshot-learning-in-production/README.md | # Few-Shot Learning in Production
> Here you can find all the materials for the SetFit workshop on few-shot learning!
## Slides
You can find slides for the workshops at the links below:
* [Few-Shot Learning in Production](https://docs.google.com/presentation/d/1LVnwWShIVNVBxA8eG017zsDioP7BnT7DHc8eU0NGC3E/edit?usp=s... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/mlops-world/dynamic-quantization.ipynb | # Remove the mkl-include and mkl dependencies if running on Colab
%pip install "optimum[onnxruntime]==1.2.2" "evaluate[evaluator]" sklearn mkl-include mklimport datasets
datasets.logging.set_verbosity_error()
%env TOKENIZERS_PARALLELISM=falsefrom pathlib import Path
from optimum.onnxruntime import ORTModelForSequenc... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/mlops-world/README.md | # MLOps World
> Here you can find all the materials for the workshop on _Accelerating Transformers with Hugging Face Optimum and Infinity_ at [MLOps World 2022](https://mlopsworld.com/)!
## Getting started
If you want to follow along, make sure you have:
* Signed up for a Hugging Face account: https://huggingface.c... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/mlops-world/static-quantization.ipynb | # Remove the mkl-include and mkl dependencies if running on Colab
%pip install "optimum[onnxruntime]==1.2.2" evaluate[evaluator] sklearn mkl-include mklfrom optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer
from pathlib import Path
model_id="optimum/distilbert-base-un... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/mlops-world/utils.py | from optimum.onnxruntime.preprocessors import QuantizationPreprocessor
from optimum.onnxruntime.preprocessors.passes import (
ExcludeGeLUNodes,
ExcludeLayerNormNodes,
ExcludeNodeAfter,
ExcludeNodeFollowedBy,
)
def create_quantization_preprocessor():
# Create a quantization preprocessor to determin... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/machine-learning-tokyo/01-transformers-tour.ipynb | from IPython.display import YouTubeVideo
YouTubeVideo('1pedAIvTWXk')import textwrap
wrapper = textwrap.TextWrapper(width=80, break_long_words=False, break_on_hyphens=False)text = """Dear Amazon, last week I ordered an Optimus Prime action figure \
from your online store in Germany. Unfortunately, when I opened the pack... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/machine-learning-tokyo/README.md | # Machine Learning Tokyo
> Here you can find all the materials for the MLT workshop!
## Getting started
If you want to follow along, make sure you have:
* Signed up for a Hugging Face account: https://huggingface.co/join
* Signed up to Google Colab so you can run code on free GPUs: https://colab.research.google.com... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/machine-learning-tokyo/03-gradio-demo.ipynb | # !pip install transformers gradio sentencepieceimport gradio as gr
from transformers import pipelinepipe = pipeline("text-classification", model="lewtun/xlm-roberta-base-finetuned-marc-en")pipe("The Lord of the Rings is waaay too long to read!!")label2emoji = {"terrible": "💩", "poor": "😾", "ok": "🐱", "good": "😺", ... |
0 | hf_public_repos/workshops | hf_public_repos/workshops/machine-learning-tokyo/02-text-classification.ipynb | #! pip install datasets transformers sentencepiecefrom huggingface_hub import notebook_login
notebook_login()# !apt install git-lfsfrom IPython.display import YouTubeVideo
YouTubeVideo("_BZearw7f0w", width=600, height=400)from datasets import get_dataset_config_names
dataset_name = "amazon_reviews_multi"
langs = get... |
0 | hf_public_repos | hf_public_repos/sharp-transformers/Runtime.meta | fileFormatVersion: 2
guid: ee34b6c1a13a3ce40bb28c59b8233afb
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
|
0 | hf_public_repos | hf_public_repos/sharp-transformers/package.json.meta | fileFormatVersion: 2
guid: 5d09fabafa75bd14aba7b139d2379b45
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
|
0 | hf_public_repos | hf_public_repos/sharp-transformers/README.md | # Sharp Transformers
A Unity plugin of utilities to **run Transformer 🤗 models in Unity games**.
Sharp transformers is designed to be **functionally equivalent to Hugging Face’s [transformers python library]**(https://github.com/huggingface/transformers/tree/main).
If you like this library, **don't hesitate to ⭐ st... |
0 | hf_public_repos | hf_public_repos/sharp-transformers/package.json | {
"name": "com.huggingface.sharp-transformers",
"displayName": "Hugging Face Sharp Transformers",
"version": "0.0.1",
"unity": "2020.3",
"description": "A Unity plugin for using Transformers models in Unity.",
"keywords": ["huggingface", "llm", "AI"],
"author": {
"name": "Thomas Simonini",
"email"... |
0 | hf_public_repos | hf_public_repos/sharp-transformers/README.md.meta | fileFormatVersion: 2
guid: b0ec1865350d9eb4e8f442d1d2d6a24c
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
|
0 | hf_public_repos | hf_public_repos/sharp-transformers/LICENSE | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... |
0 | hf_public_repos/sharp-transformers | hf_public_repos/sharp-transformers/Runtime/HuggingFace.SharpTransformers.asmdef | {
"name": "HuggingFace.SharpTransformers"
}
|
0 | hf_public_repos/sharp-transformers | hf_public_repos/sharp-transformers/Runtime/HuggingFace.SharpTransformers.asmdef.meta | fileFormatVersion: 2
guid: e498adf2b0e1d8b47871ffa1278544a0
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.