text stringlengths 23 371k | source stringlengths 32 152 |
|---|---|
Billing
At Hugging Face, we build a collaboration platform for the ML community (i.e., the Hub), and we **monetize by providing simple access to compute for AI**, with services like AutoTrain, Spaces and Inference Endpoints, directly accessible from the Hub, and billed by Hugging Face to the credit card on file.
We ... | huggingface/hub-docs/blob/main/docs/hub/billing.md |
Streamlit Spaces
**Streamlit** gives users freedom to build a full-featured web app with Python in a *reactive* way. Your code is rerun each time the state of the app changes. Streamlit is also great for data visualization and supports several charting libraries such as Bokeh, Plotly, and Altair. Read this [blog post... | huggingface/hub-docs/blob/main/docs/hub/spaces-sdks-streamlit.md |
Introduction[[introduction]]
<CourseFloatingBanner
chapter={8}
classNames="absolute z-10 right-0 top-0"
/>
Now that you know how to tackle the most common NLP tasks with 🤗 Transformers, you should be able to get started on your own projects! In this chapter we will explore what to do when you hit a problem.... | huggingface/course/blob/main/chapters/en/chapter8/1.mdx |
FrameworkSwitchCourse {fw} />
# Sharing pretrained models[[sharing-pretrained-models]]
{#if fw === 'pt'}
<CourseFloatingBanner chapter={4}
classNames="absolute z-10 right-0 top-0"
notebooks={[
{label: "Google Colab", value: "https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/en... | huggingface/course/blob/main/chapters/en/chapter4/3.mdx |
!--Copyright 2022 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 agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/biogpt.md |
@gradio/client
## 0.9.3
### Features
- [#6814](https://github.com/gradio-app/gradio/pull/6814) [`828fb9e`](https://github.com/gradio-app/gradio/commit/828fb9e6ce15b6ea08318675a2361117596a1b5d) - Refactor queue so that there are separate queues for each concurrency id. Thanks [@aliabid94](https://github.com/aliabid... | gradio-app/gradio/blob/main/client/js/CHANGELOG.md |
Filter rows in a dataset
Datasets Server provides a `/filter` endpoint for filtering rows in a dataset.
<Tip warning={true}>
Currently, only <a href="./parquet">datasets with Parquet exports</a>
are supported so Datasets Server can index the contents and run the filter query without
downloading the whole datas... | huggingface/datasets-server/blob/main/docs/source/filter.mdx |
# Simulate with Godot
### Install in Godot 4
This integration has been developed for Godot 4.x. You can install Godot from [this page](https://godotengine.org/article/dev-snapshot-godot-4-0-alpha-11).
Currently Godot4 is still in early alpha stage, therefore you will be able to find updates pretty often. Another solut... | huggingface/simulate/blob/main/integrations/Godot/README.md |
!--Copyright 2023 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 agreed ... | huggingface/diffusers/blob/main/docs/source/en/api/schedulers/ddpm.md |
@gradio/label
## 0.2.6
### Patch Changes
- Updated dependencies [[`828fb9e`](https://github.com/gradio-app/gradio/commit/828fb9e6ce15b6ea08318675a2361117596a1b5d), [`73268ee`](https://github.com/gradio-app/gradio/commit/73268ee2e39f23ebdd1e927cb49b8d79c4b9a144)]:
- @gradio/statustracker@0.4.3
- @gradio/atoms@0.... | gradio-app/gradio/blob/main/js/label/CHANGELOG.md |
!--Copyright 2023 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 agreed to ... | huggingface/diffusers/blob/main/docs/source/en/api/pipelines/unclip.md |
!--Copyright 2023 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 agreed ... | huggingface/diffusers/blob/main/docs/source/en/api/pipelines/stable_diffusion/adapter.md |
Model Summaries
The model architectures included come from a wide variety of sources. Sources, including papers, original impl ("reference code") that I rewrote / adapted, and PyTorch impl that I leveraged directly ("code") are listed below.
Most included models have pretrained weights. The weights are either:
1. f... | huggingface/pytorch-image-models/blob/main/docs/models.md |
!--⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.
-->
# Prefix tuning for conditional generation
[[open-in-colab]]
Prefix tuning is an additive method where only a sequence of continuous task-specific v... | huggingface/peft/blob/main/docs/source/task_guides/seq2seq-prefix-tuning.md |
!--Copyright 2022 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 agreed ... | huggingface/optimum/blob/main/docs/source/notebooks.md |
!--Copyright 2023 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 agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/vitmatte.md |
Adapt a model to a new task
Many diffusion systems share the same components, allowing you to adapt a pretrained model for one task to an entirely different task.
This guide will show you how to adapt a pretrained text-to-image model for inpainting by initializing and modifying the architecture of a pretrained [`UNe... | huggingface/diffusers/blob/main/docs/source/en/training/adapt_a_model.md |
!--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 applicable law or agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/speech-encoder-decoder.md |
!--Copyright 2023 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 agreed ... | huggingface/diffusers/blob/main/docs/source/en/api/loaders/unet.md |
Next Steps
These next sections highlight features and additional information that you may find useful to make the most out of the Git repositories on the Hugging Face Hub.
## How to programmatically manage repositories
Hugging Face supports accessing repos with Python via the [`huggingface_hub` library](https://hug... | huggingface/hub-docs/blob/main/docs/hub/repositories-next-steps.md |
Hugging Face Inference Endpoints documentation
## Setup
```bash
pip install hf-doc-builder==0.4.0 watchdog --upgrade
```
## Local Development
```bash
doc-builder preview endpoints docs/source/ --not_python_module
```
## Build Docs
```bash
doc-builder build endpoints docs/source/ --build_dir build/ --not_python_m... | huggingface/hf-endpoints-documentation/blob/main/README.md |
!--Copyright 2022 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 agreed ... | huggingface/transformers/blob/main/docs/source/en/accelerate.md |
!--Copyright 2022 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 agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/focalnet.md |
Running Tests
To run the test suite, please perform the following from the root directory of this repository:
1. `pip install -e .[testing]`
This will install all the testing requirements.
2. `sudo apt-get update; sudo apt-get install git-lfs -y`
We need git-lfs on our system to run some of the tests
... | huggingface/huggingface_hub/blob/main/tests/README.md |
Case Study: A Component to Display PDFs
Let's work through an example of building a custom gradio component for displaying PDF files.
This component will come in handy for showcasing [document question answering](https://huggingface.co/models?pipeline_tag=document-question-answering&sort=trending) models, which typic... | gradio-app/gradio/blob/main/guides/05_custom-components/07_pdf-component-example.md |
!---
Copyright 2022 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 a... | huggingface/optimum/blob/main/examples/onnxruntime/training/question-answering/README.md |
Gradio Demo: stream_audio_out
```
!pip install -q gradio
```
```
# Downloading files from the demo repo
import os
os.mkdir('audio')
!wget -q -O audio/cantina.wav https://github.com/gradio-app/gradio/raw/main/demo/stream_audio_out/audio/cantina.wav
```
```
import gradio as gr
from pydub import AudioSegment
from ... | gradio-app/gradio/blob/main/demo/stream_audio_out/run.ipynb |
--
title: "Open LLM Leaderboard: DROP deep dive"
thumbnail: /blog/assets/evaluating-mmlu-leaderboard/thumbnail.png
authors:
- user: clefourrier
- user: cabreraalex
guest: true
- user: stellaathena
guest: true
- user: SaylorTwift
- user: thomwolf
---
# Open LLM Leaderboard: DROP deep dive
Recently, [three new bench... | huggingface/blog/blob/main/leaderboard-drop-dive.md |
!--⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.
-->
# Interact with the Hub through the Filesystem API
In addition to the [`HfApi`], the `huggingface_hub` library provides [`HfFileSystem`], a pythonic ... | huggingface/huggingface_hub/blob/main/docs/source/en/guides/hf_file_system.md |
--
title: CharCut
emoji: 🔤
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 3.19.1
app_file: app.py
pinned: false
tags:
- evaluate
- metric
- machine-translation
description: >-
CharCut is a character-based machine translation evaluation metric.
---
# Metric Card for CharacTER
## Metric Description
CharCut co... | huggingface/evaluate/blob/main/metrics/charcut_mt/README.md |
--
title: IndicGLUE
emoji: 🤗
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 3.19.1
app_file: app.py
pinned: false
tags:
- evaluate
- metric
description: >-
IndicGLUE is a natural language understanding benchmark for Indian languages. It contains a wide
variety of tasks and covers 11 major Indian languages ... | huggingface/evaluate/blob/main/metrics/indic_glue/README.md |
!--Copyright 2022 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 agreed ... | huggingface/transformers/blob/main/docs/source/en/quicktour.md |
!--Copyright 2023 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 agreed ... | huggingface/diffusers/blob/main/docs/source/en/api/schedulers/pndm.md |
Introduction
<img src="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit12/thumbnail.png" alt="Unit bonus 3 thumbnail"/>
Congratulations on finishing this course! **You now have a solid background in Deep Reinforcement Learning**.
But this course was just the beginning of... | huggingface/deep-rl-class/blob/main/units/en/unitbonus3/introduction.mdx |
!--Copyright 2022 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 agreed ... | huggingface/optimum/blob/main/docs/source/onnxruntime/quickstart.mdx |
All about metrics
<Tip warning={true}>
Metrics is deprecated in 🤗 Datasets. To learn more about how to use metrics, take a look at the library 🤗 [Evaluate](https://huggingface.co/docs/evaluate/index)! In addition to metrics, you can find more tools for evaluating models and datasets.
</Tip>
🤗 Datasets provides ... | huggingface/datasets/blob/main/docs/source/about_metrics.mdx |
gradio-ui
This folder contains all of the Gradio UI and component source code.
- [set up](#setup)
- [running the application](#running-the-application)
- [local development](#local-development)
- [building for production](#building-for-production)
- [quality checks](#quality-checks)
- [ci checks](#ci-checks)
## set... | gradio-app/gradio/blob/main/js/README.md |
List Parquet files
Datasets can be published in any format (CSV, JSONL, directories of images, etc.) to the Hub, and they are easily accessed with the 🤗 [Datasets](https://huggingface.co/docs/datasets/) library. For a more performant experience (especially when it comes to large datasets), Datasets Server automatica... | huggingface/datasets-server/blob/main/docs/source/parquet.mdx |
!--Copyright 2023 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 agreed ... | huggingface/diffusers/blob/main/docs/source/en/api/pipelines/stable_diffusion/latent_upscale.md |
--
title: Google BLEU
emoji: 🤗
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 3.19.1
app_file: app.py
pinned: false
tags:
- evaluate
- metric
description: >-
The BLEU score has some undesirable properties when used for single
sentences, as it was designed to be a corpus measure. We therefore
use a sligh... | huggingface/evaluate/blob/main/metrics/google_bleu/README.md |
p align="center">
<br>
<img src="https://huggingface.co/landing/assets/tokenizers/tokenizers-logo.png" width="600"/>
<br>
<p>
<p align="center">
<img alt="Build" src="https://github.com/huggingface/tokenizers/workflows/Rust/badge.svg">
<a href="https://github.com/huggingface/tokenizers/blob/main/LIC... | huggingface/tokenizers/blob/main/README.md |
--
title: "Evaluating Language Model Bias with 🤗 Evaluate"
thumbnail: /blog/assets/112_evaluating-llm-bias/thumbnail.png
authors:
- user: sasha
- user: meg
- user: mathemakitten
- user: lvwerra
- user: douwekiela
---
# Evaluating Language Model Bias with 🤗 Evaluate
While the size and capabilities of large language... | huggingface/blog/blob/main/evaluating-llm-bias.md |
--
title: "Can foundation models label data like humans?"
thumbnail: /blog/assets/llm-leaderboard/leaderboard-thumbnail.png
authors:
- user: nazneen
- user: natolambert
- user: sheonhan
- user: wangjean
guest: true
- user: OsvaldN97
guest: true
- user: edbeeching
- user: lewtun
- user: slippylolo
- user: thomwolf
... | huggingface/blog/blob/main/llm-leaderboard.md |
`tokenizers-linux-arm64-musl`
This is the **aarch64-unknown-linux-musl** binary for `tokenizers`
| huggingface/tokenizers/blob/main/bindings/node/npm/linux-arm64-musl/README.md |
n these few videos, we'll take a look at the tokenizers. In Natural Language Processing, most of the data that we handle consists of raw text. However, machine learning models cannot read and understand text in its raw form they can only work with numbers. The tokenizer's objective will be to translate the text into nu... | huggingface/course/blob/main/subtitles/en/raw/chapter2/04a_tokenizers-overview.md |
Introduction to Q-Learning [[introduction-q-learning]]
<img src="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit3/thumbnail.jpg" alt="Unit 2 thumbnail" width="100%">
In the first unit of this class, we learned about Reinforcement Learning (RL), the RL process, and the d... | huggingface/deep-rl-class/blob/main/units/en/unit2/introduction.mdx |
!--Copyright 2023 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 agreed ... | huggingface/diffusers/blob/main/docs/source/en/using-diffusers/shap-e.md |
Gradio Demo: gallery_component
```
!pip install -q gradio
```
```
import gradio as gr
with gr.Blocks() as demo:
cheetahs = [
"https://upload.wikimedia.org/wikipedia/commons/0/09/TheCheethcat.jpg",
"https://nationalzoo.si.edu/sites/default/files/animals/cheetah-003.jpg",
"https://img.... | gradio-app/gradio/blob/main/demo/gallery_component/run.ipynb |
!--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 agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/encoder-decoder.md |
--
title: "Student Ambassador Program’s call for applications is open!"
thumbnail: /blog/assets/67_ambassadors/thumbnail.png
authors:
- user: Violette
---
# Student Ambassador Program’s call for applications is open!
As an open-source company democratizing machine learning, Hugging Face believes it is essential to *... | huggingface/blog/blob/main/ambassadors.md |
!--Copyright 2023 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 agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/swiftformer.md |
Gradio Demo: blocks_scroll
```
!pip install -q gradio
```
```
import gradio as gr
demo = gr.Blocks()
with demo:
inp = gr.Textbox(placeholder="Enter text.")
scroll_btn = gr.Button("Scroll")
no_scroll_btn = gr.Button("No Scroll")
big_block = gr.HTML("""
<div style='height: 800px; width: 100px... | gradio-app/gradio/blob/main/demo/blocks_scroll/run.ipynb |
website
## 0.20.3
### Patch Changes
- Updated dependencies []:
- @gradio/code@0.3.3
## 0.20.2
### Patch Changes
- Updated dependencies []:
- @gradio/code@0.3.2
## 0.20.1
### Patch Changes
- Updated dependencies []:
- @gradio/code@0.3.1
## 0.20.0
### Features
- [#6679](https://github.com/gradio-app/gr... | gradio-app/gradio/blob/main/js/_website/CHANGELOG.md |
Gradio Demo: live_dashboard
### This demo shows how you can build a live interactive dashboard with gradio.
The current time is refreshed every second and the plot every half second by using the 'every' keyword in the event handler.
Changing the value of the slider will control the period of the sine curve (the distan... | gradio-app/gradio/blob/main/demo/live_dashboard/run.ipynb |
!--Copyright 2023 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 agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/llama2.md |
Image Classification in TensorFlow and Keras
Related spaces: https://huggingface.co/spaces/abidlabs/keras-image-classifier
Tags: VISION, MOBILENET, TENSORFLOW
## Introduction
Image classification is a central task in computer vision. Building better classifiers to classify what object is present in a picture is an ... | gradio-app/gradio/blob/main/guides/06_integrating-other-frameworks/image-classification-in-tensorflow.md |
Metric Card for METEOR
## Metric description
METEOR (Metric for Evaluation of Translation with Explicit ORdering) is a machine translation evaluation metric, which is calculated based on the harmonic mean of precision and recall, with recall weighted more than precision.
METEOR is based on a generalized concept of... | huggingface/datasets/blob/main/metrics/meteor/README.md |
--
title:
emoji: 🤗
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 3.19.1
app_file: app.py
pinned: false
tags:
- evaluate
- metric
description: >-
FrugalScore is a reference-based metric for NLG models evaluation. It is based on a distillation approach that allows to learn a fixed, low cost version of any ex... | huggingface/evaluate/blob/main/metrics/frugalscore/README.md |
Gradio Demo: queue_full_e2e_test
```
!pip install -q gradio
```
```
import gradio as gr
import time
import random
n_calls = 0
def get_random_number():
global n_calls
if n_calls == 1:
n_calls += 1
raise gr.Error("This is a gradio error")
n_calls += 1
time.sleep(5)
return rando... | gradio-app/gradio/blob/main/demo/queue_full_e2e_test/run.ipynb |
!--Copyright 2022 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 agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/regnet.md |
--
title: "Training a language model with 🤗 Transformers using TensorFlow and TPUs"
thumbnail: /blog/assets/tf_tpu_training/thumbnail.png
authors:
- user: rocketknight1
- user: sayakpaul
---
# Training a language model with 🤗 Transformers using TensorFlow and TPUs
## Introduction
TPU training is a useful skill to... | huggingface/blog/blob/main/tf_tpu.md |
!--Copyright 2022 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 agreed ... | huggingface/simulate/blob/main/docs/source/quicktour.mdx |
(Tensorflow) MobileNet v3
**MobileNetV3** is a convolutional neural network that is designed for mobile phone CPUs. The network design includes the use of a [hard swish activation](https://paperswithcode.com/method/hard-swish) and [squeeze-and-excitation](https://paperswithcode.com/method/squeeze-and-excitation-block... | huggingface/pytorch-image-models/blob/main/docs/models/tf-mobilenet-v3.md |
Run with Docker
You can use Docker to run most Spaces locally.
To view instructions to download and run Spaces' Docker images, click on the "Run with Docker" button on the top-right corner of your Space page:
<div class="flex justify-center">
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggi... | huggingface/hub-docs/blob/main/docs/hub/spaces-run-with-docker.md |
Gradio Demo: blocks_simple_squares
```
!pip install -q gradio
```
```
import gradio as gr
demo = gr.Blocks(css="""#btn {color: red} .abc {font-family: "Comic Sans MS", "Comic Sans", cursive !important}""")
with demo:
default_json = {"a": "a"}
num = gr.State(value=0)
squared = gr.Number(value=0)
... | gradio-app/gradio/blob/main/demo/blocks_simple_squares/run.ipynb |
!--Copyright 2022 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 agreed ... | huggingface/optimum/blob/main/docs/source/quicktour.mdx |
FrameworkSwitchCourse {fw} />
# Fine-tuning a masked language model[[fine-tuning-a-masked-language-model]]
{#if fw === 'pt'}
<CourseFloatingBanner chapter={7}
classNames="absolute z-10 right-0 top-0"
notebooks={[
{label: "Google Colab", value: "https://colab.research.google.com/github/huggingface/notebooks/b... | huggingface/course/blob/main/chapters/en/chapter7/3.mdx |
Fine-tuning a multilayer perceptron using LoRA and 🤗 PEFT
[](https://colab.research.google.com/github/huggingface/peft/blob/main/examples/multilayer_perceptron/multilayer_perceptron_lora.ipynb)
PEFT supports fine-tuning any type of model as l... | huggingface/peft/blob/main/examples/multilayer_perceptron/README.md |
!--⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.
-->
# Cache-system reference
The caching system was updated in v0.8.0 to become the central cache-system shared
across libraries that depend on the Hub. ... | huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/cache.md |
datasets-server Helm chart
The `datasets-server` Helm [chart](https://helm.sh/docs/topics/charts/) describes the Kubernetes resources of the datasets-server application.
If you have access to the internal HF notion, see https://www.notion.so/huggingface2/Infrastructure-b4fd07f015e04a84a41ec6472c8a0ff5.
The cloud in... | huggingface/datasets-server/blob/main/chart/README.md |
!--Copyright 2023 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 agreed ... | huggingface/peft/blob/main/docs/source/developer_guides/quantization.md |
Gradio Demo: blocks_static
```
!pip install -q gradio
```
```
import gradio as gr
demo = gr.Blocks()
with demo:
gr.Image(
"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80"
)
gr.Textb... | gradio-app/gradio/blob/main/demo/blocks_static/run.ipynb |
!--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 applicable law or agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/wavlm.md |
Gradio Demo: main_note
```
!pip install -q gradio scipy numpy matplotlib
```
```
# Downloading files from the demo repo
import os
os.mkdir('audio')
!wget -q -O audio/cantina.wav https://github.com/gradio-app/gradio/raw/main/demo/main_note/audio/cantina.wav
!wget -q -O audio/recording1.wav https://github.com/gradio... | gradio-app/gradio/blob/main/demo/main_note/run.ipynb |
@gradio/atoms
## 0.4.1
### Fixes
- [#6766](https://github.com/gradio-app/gradio/pull/6766) [`73268ee`](https://github.com/gradio-app/gradio/commit/73268ee2e39f23ebdd1e927cb49b8d79c4b9a144) - Improve source selection UX. Thanks [@hannahblair](https://github.com/hannahblair)!
## 0.4.0
### Features
- [#6569](https... | gradio-app/gradio/blob/main/js/atoms/CHANGELOG.md |
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
`dataset... | huggingface/transformers/blob/main/examples/research_projects/performer/README.md |
FrameworkSwitchCourse {fw} />
# Using pretrained models[[using-pretrained-models]]
{#if fw === 'pt'}
<CourseFloatingBanner chapter={4}
classNames="absolute z-10 right-0 top-0"
notebooks={[
{label: "Google Colab", value: "https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/en/cha... | huggingface/course/blob/main/chapters/en/chapter4/2.mdx |
Understanding the Interface class[[understanding-the-interface-class]]
<CourseFloatingBanner chapter={9}
classNames="absolute z-10 right-0 top-0"
notebooks={[
{label: "Google Colab", value: "https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/en/chapter9/section3.ipynb"},
{la... | huggingface/course/blob/main/chapters/en/chapter9/3.mdx |
!--Copyright 2022 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 agreed ... | huggingface/simulate/blob/main/docs/source/api/rl_env.mdx |
--
title: "A Dive into Vision-Language Models"
thumbnail: /blog//assets/128_vision_language_pretraining/thumbnail.png
authors:
- user: adirik
- user: sayakpaul
---
# A Dive into Vision-Language Models
Human learning is inherently multi-modal as jointly leveraging multiple senses helps us understand and analyze new i... | huggingface/blog/blob/main/vision_language_pretraining.md |
Sharing and Loading Models From the Hugging Face Hub
The `timm` library has a built-in integration with the Hugging Face Hub, making it easy to share and load models from the 🤗 Hub.
In this short guide, we'll see how to:
1. Share a `timm` model on the Hub
2. How to load that model back from the Hub
## Authenti... | huggingface/pytorch-image-models/blob/main/hfdocs/source/hf_hub.mdx |
Pricing
<div class="flex md:justify-start mb-2 text-gray-400 items-center">
<a href="https://ui.endpoints.huggingface.co/new">
<button class="shadow-sm bg-white bg-gradient-to-br from-gray-100/20 to-gray-200/60 hover:to-gray-100/70 text-gray-700 py-1.5 rounded-lg ring-1 ring-gray-300/60 hover:ring-gray-300/30 f... | huggingface/hf-endpoints-documentation/blob/main/docs/source/pricing.mdx |
!--Copyright 2022 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 agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/resnet.md |
--
title: "Comparing the Performance of LLMs: A Deep Dive into Roberta, Llama 2, and Mistral for Disaster Tweets Analysis with Lora"
thumbnail: /blog/assets/Lora-for-sequence-classification-with-Roberta-Llama-Mistral/Thumbnail.png
authors:
- user: mehdiiraqui
guest: true
---
# Comparing the Performance of LLMs: A ... | huggingface/blog/blob/main/Lora-for-sequence-classification-with-Roberta-Llama-Mistral.md |
!--Copyright 2023 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 agreed ... | huggingface/diffusers/blob/main/docs/source/en/api/pipelines/animatediff.md |
Supported Transformers & Diffusers Tasks
Inference Endpoints offers out-of-the-box support for Machine Learning tasks from the Transformers, Sentence-Transformers and Diffusers libraries. Below is a table of Hugging Face managed supported tasks for Inference Endpoint. These tasks don't require any form of code or [“c... | huggingface/hf-endpoints-documentation/blob/main/docs/source/supported_tasks.mdx |
demo for predicting the depth of an image and generating a 3D model of it. | gradio-app/gradio/blob/main/demo/depth_estimation/DESCRIPTION.md |
Gradio Demo: video_component
```
!pip install -q gradio
```
```
# Downloading files from the demo repo
import os
os.mkdir('files')
!wget -q -O files/a.mp4 https://github.com/gradio-app/gradio/raw/main/demo/video_component/files/a.mp4
!wget -q -O files/b.mp4 https://github.com/gradio-app/gradio/raw/main/demo/video... | gradio-app/gradio/blob/main/demo/video_component/run.ipynb |
--
title: "Introducing DOI: the Digital Object Identifier to Datasets and Models"
thumbnail: /blog/assets/107_launching_doi/thumbnail.jpeg
authors:
- user: sasha
- user: Sylvestre
- user: cakiki
guest: true
- user: aleroy
guest: true
---
# Introducing DOI: the Digital Object Identifier to Datasets and Models
... | huggingface/blog/blob/main/introducing-doi.md |
--
title: "Accelerating PyTorch Transformers with Intel Sapphire Rapids - part 1"
thumbnail: /blog/assets/124_intel_sapphire_rapids/02.png
authors:
- user: juliensimon
---
# Accelerating PyTorch Transformers with Intel Sapphire Rapids, part 1
About a year ago, we [showed you](https://huggingface.co/blog/accelerating-... | huggingface/blog/blob/main/intel-sapphire-rapids.md |
End-to-End finetuning of RAG (including DPR retriever) for Question Answering.
This finetuning script is actively maintained by [Shamane Siri](https://github.com/shamanez). Feel free to ask questions on the [Forum](https://discuss.huggingface.co/) or post an issue on [GitHub](https://github.com/huggingface/transforme... | huggingface/transformers/blob/main/examples/research_projects/rag-end2end-retriever/README.md |
How to contribute to the Datasets Server?
[](CODE_OF_CONDUCT.md)
The Datasets Server is an open source project, so all contributions and suggestions are welcome.
You can contribute in many different ways: giving ideas, answer... | huggingface/datasets-server/blob/main/CONTRIBUTING.md |
Preprocess
In addition to loading datasets, 🤗 Datasets other main goal is to offer a diverse set of preprocessing functions to get a dataset into an appropriate format for training with your machine learning framework.
There are many possible ways to preprocess a dataset, and it all depends on your specific datase... | huggingface/datasets/blob/main/docs/source/use_dataset.mdx |
--
title: Introducing our new pricing
thumbnail: /blog/assets/114_pricing-update/thumbnail.png
authors:
- user: sbrandeis
- user: pierric
---
# Introducing our new pricing
As you might have noticed, our [pricing page](https://huggingface.co/pricing) has changed a lot recently.
First of all, we are sunsetting the Pa... | huggingface/blog/blob/main/pricing-update.md |
TensorFlow 和 Keras 中的图像分类
相关空间:https://huggingface.co/spaces/abidlabs/keras-image-classifier
标签:VISION, MOBILENET, TENSORFLOW
## 简介
图像分类是计算机视觉中的一项核心任务。构建更好的分类器来识别图像中的物体是一个研究的热点领域,因为它在交通控制系统到卫星成像等应用中都有广泛的应用。
这样的模型非常适合与 Gradio 的 _image_ 输入组件一起使用,因此在本教程中,我们将使用 Gradio 构建一个用于图像分类的 Web 演示。我们可以在 Python 中构建整个 Web 应用程序,它的界... | gradio-app/gradio/blob/main/guides/cn/04_integrating-other-frameworks/image-classification-in-tensorflow.md |
--
title: Faster Stable Diffusion with Core ML on iPhone, iPad, and Mac
thumbnail: /blog/assets/149_fast_diffusers_coreml/thumbnail.png
authors:
- user: pcuenq
---
# Faster Stable Diffusion with Core ML on iPhone, iPad, and Mac
WWDC’23 (Apple Worldwide Developers Conference) was held last week. A lot of the news foc... | huggingface/blog/blob/main/fast-diffusers-coreml.md |
Big Transfer (BiT)
**Big Transfer (BiT)** is a type of pretraining recipe that pre-trains on a large supervised source dataset, and fine-tunes the weights on the target task. Models are trained on the JFT-300M dataset. The finetuned models contained in this collection are finetuned on ImageNet.
## How do I use this... | huggingface/pytorch-image-models/blob/main/hfdocs/source/models/big-transfer.mdx |
his demo identifies if two speakers are the same person using Gradio's Audio and HTML components. | gradio-app/gradio/blob/main/demo/same-person-or-different/DESCRIPTION.md |
!--Copyright 2021 NVIDIA Corporation and 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 ap... | huggingface/transformers/blob/main/docs/source/en/model_doc/qdqbert.md |
!--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 applicable law or agreed ... | huggingface/transformers/blob/main/docs/source/en/model_doc/unispeech.md |
Subsets and Splits
Transformers Source Texts
This query retrieves specific examples from the dataset related to transformers, providing a limited view of the data with basic filtering.