text
stringlengths
23
371k
source
stringlengths
32
152
Manual Configuration This guide will show you how to configure a custom structure for your dataset repository. A dataset with a supported structure and [file formats](./datasets-adding#file-formats) automatically has a Dataset Viewer on its dataset page on the Hub. You can use YAML to define the splits, configuratio...
huggingface/hub-docs/blob/main/docs/hub/datasets-manual-configuration.md
Gradio Demo: filter_records ``` !pip install -q gradio ``` ``` import gradio as gr def filter_records(records, gender): return records[records["gender"] == gender] demo = gr.Interface( filter_records, [ gr.Dataframe( headers=["name", "age", "gender"], datatype=["str...
gradio-app/gradio/blob/main/demo/filter_records/run.ipynb
-- title: Image Classification with AutoTrain thumbnail: /blog/assets/105_autotrain-image-classification/thumbnail.png authors: - user: nimaboscarino --- # Image Classification with AutoTrain <script async defer src="https://unpkg.com/medium-zoom-element@0/dist/medium-zoom-element.min.js"></script> So you’ve heard...
huggingface/blog/blob/main/autotrain-image-classification.md
sing the Python debugger in a terminal. In this video, we'll learn how to use the Python debugger in a terminal. For this example, we are running code from the token classification section, downloading the Conll dataset before loading a tokenizer to preprocess it. Checkout the section of the course linked below for mor...
huggingface/course/blob/main/subtitles/en/raw/chapter8/02c_debug-terminal.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/internal_classes_overview.md
Static HTML Spaces Spaces also accommodate custom HTML for your app instead of using Streamlit or Gradio. Set `sdk: static` inside the `YAML` block at the top of your Spaces **README.md** file. Then you can place your HTML code within an **index.html** file. Here are some examples of Spaces using custom HTML: * [Sm...
huggingface/hub-docs/blob/main/docs/hub/spaces-sdks-static.md
!--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/distilbert.md
n this video, we will learn the first things to do when you get an error. Let's say we want to use the question answering pipeline on a particular model and we get the following error. Errors in Python can appear overwhelming because you get so much information printed out, but that's because Python is trying to help y...
huggingface/course/blob/main/subtitles/en/raw/chapter8/02a_error.md
@gradio/dropdown ## 0.4.3 ### 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...
gradio-app/gradio/blob/main/js/dropdown/CHANGELOG.md
Tasks ## What's a task? Tasks, or pipeline types, describe the "shape" of each model's API (inputs and outputs) and are used to determine which Inference API and widget we want to display for any given model. <div class="flex justify-center"> <img class="block dark:hidden" src="https://huggingface.co/datasets/hugg...
huggingface/hub-docs/blob/main/docs/hub/models-tasks.md
Gradio Demo: autocomplete ### This text generation demo works like autocomplete. There's only one textbox and it's used for both the input and the output. The demo loads the model as an interface, and uses that interface as an API. It then uses blocks to create the UI. All of this is done in less than 10 lines of code...
gradio-app/gradio/blob/main/demo/autocomplete/run.ipynb
Gradio Demo: generate_english_german ``` !pip install -q gradio transformers torch ``` ``` import gradio as gr from transformers import pipeline english_translator = gr.load(name="spaces/gradio/english_translator") english_generator = pipeline("text-generation", model="distilgpt2") def generate_text(text): ...
gradio-app/gradio/blob/main/demo/generate_english_german/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 a...
huggingface/transformers/blob/main/examples/tensorflow/summarization/README.md
-- title: "Fine-Tune XLSR-Wav2Vec2 for low-resource ASR with 🤗 Transformers" thumbnail: /blog/assets/xlsr_wav2vec2.png authors: - user: patrickvonplaten --- # Fine-tuning XLS-R for Multi-Lingual ASR with 🤗 Transformers <a target="_blank" href="https://colab.research.google.com/github/patrickvonplaten/notebooks/blo...
huggingface/blog/blob/main/fine-tune-xlsr-wav2vec2.md
Installation <tokenizerslangcontent> <python> 🤗 Tokenizers is tested on Python 3.5+. You should install 🤗 Tokenizers in a [virtual environment](https://docs.python.org/3/library/venv.html). If you're unfamiliar with Python virtual environments, check out the [user guide](https://packaging.python.org/guides/install...
huggingface/tokenizers/blob/main/docs/source-doc-builder/installation.mdx
Mastering NLP[[mastering-nlp]] <CourseFloatingBanner chapter={7} classNames="absolute z-10 right-0 top-0" /> If you've made it this far in the course, congratulations -- you now have all the knowledge and tools you need to tackle (almost) any NLP task with 🤗 Transformers and the Hugging Face ecosystem! We ...
huggingface/course/blob/main/chapters/en/chapter7/8.mdx
Collections Use Collections to group repositories from the Hub (Models, Datasets, Spaces and Papers) on a dedicated page. ![Collection page](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/collections/collection-intro.webp) Collections have many use cases: - Highlight specific reposit...
huggingface/hub-docs/blob/main/docs/hub/collections.md
-- title: "Advantage Actor Critic (A2C)" thumbnail: /blog/assets/89_deep_rl_a2c/thumbnail.gif authors: - user: ThomasSimonini --- # Advantage Actor Critic (A2C) <h2>Unit 7, of the <a href="https://github.com/huggingface/deep-rl-class">Deep Reinforcement Learning Class with Hugging Face 🤗</a></h2> ⚠️ A **new update...
huggingface/blog/blob/main/deep-rl-a2c.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/transformers/blob/main/docs/source/en/llm_tutorial_optimization.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/custom_models.md
Gradio Demo: gallery_component_events ``` !pip install -q gradio ``` ``` import gradio as gr with gr.Blocks() as demo: cheetahs = [ "https://gradio-builds.s3.amazonaws.com/assets/cheetah-003.jpg", "https://gradio-builds.s3.amazonaws.com/assets/lite-logo.png", "https://gradio-builds.s...
gradio-app/gradio/blob/main/demo/gallery_component_events/run.ipynb
Gradio Demo: theme_builder ``` !pip install -q gradio ``` ``` import gradio as gr demo = gr.themes.builder if __name__ == "__main__": demo() ```
gradio-app/gradio/blob/main/demo/theme_builder/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/diffusers/blob/main/docs/source/en/using-diffusers/inpaint.md
-- {{card_data}} --- # {{ model_name | default("MyModelName", true)}} {{ some_data }}
huggingface/huggingface_hub/blob/main/tests/fixtures/cards/sample_template.md
Noisy Student (EfficientNet) **Noisy Student Training** is a semi-supervised learning approach. It extends the idea of self-training and distillation with the use of equal-or-larger student models and noise added to the student during learning. It has three main steps: 1. train a teacher model on labeled images 2. ...
huggingface/pytorch-image-models/blob/main/docs/models/noisy-student.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/exporters/onnx/usage_guides/contribute.mdx
!--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/led.md
-- title: "Faster Training and Inference: Habana Gaudi®2 vs Nvidia A100 80GB" thumbnail: /blog/assets/habana-gaudi-2-benchmark/thumbnail.png authors: - user: regisss --- # Faster Training and Inference: Habana Gaudi®-2 vs Nvidia A100 80GB In this article, you will learn how to use [Habana® Gaudi®2](https://habana.ai...
huggingface/blog/blob/main/habana-gaudi-2-benchmark.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/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 a...
huggingface/peft/blob/main/README.md
List splits and configurations Datasets typically have splits and may also have configurations. A _split_ is a subset of the dataset, like `train` and `test`, that are used during different stages of training and evaluating a model. A _configuration_ is a sub-dataset contained within a larger dataset. Configurations ...
huggingface/datasets-server/blob/main/docs/source/splits.mdx
-- title: "Parameter-Efficient Fine-Tuning using 🤗 PEFT" thumbnail: /blog/assets/130_peft/thumbnail.png authors: - user: smangrul - user: sayakpaul --- # 🤗 PEFT: Parameter-Efficient Fine-Tuning of Billion-Scale Models on Low-Resource Hardware ## Motivation Large Language Models (LLMs) based on the transformer arc...
huggingface/blog/blob/main/peft.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/deplot.md
`tokenizers-darwin-x64` This is the **x86_64-apple-darwin** binary for `tokenizers`
huggingface/tokenizers/blob/main/bindings/node/npm/darwin-x64/README.md
Gradio Demo: blocks_inputs ``` !pip install -q gradio ``` ``` # Downloading files from the demo repo import os !wget -q https://github.com/gradio-app/gradio/raw/main/demo/blocks_inputs/lion.jpg ``` ``` import gradio as gr import os def combine(a, b): return a + " " + b def mirror(x): return x with...
gradio-app/gradio/blob/main/demo/blocks_inputs/run.ipynb
*NOTE**: This example is outdated and is not longer actively maintained. Please follow the new instructions of fine-tuning Wav2Vec2 [here](https://github.com/huggingface/transformers/blob/main/examples/pytorch/speech-recognition/README.md) ## Fine-tuning Wav2Vec2 The `run_asr.py` script allows one to fine-tune pretr...
huggingface/transformers/blob/main/examples/research_projects/wav2vec2/README.md
Gradio Demo: html_component ``` !pip install -q gradio ``` ``` import gradio as gr with gr.Blocks() as demo: gr.HTML(value="<p style='margin-top: 1rem, margin-bottom: 1rem'>This <em>example</em> was <strong>written</strong> in <a href='https://en.wikipedia.org/wiki/HTML' _target='blank'>HTML</a> </p>") dem...
gradio-app/gradio/blob/main/demo/html_component/run.ipynb
Run training on Amazon SageMaker <iframe width="700" height="394" src="https://www.youtube.com/embed/ok3hetb42gU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> This guide will show you how to tr...
huggingface/hub-docs/blob/main/docs/sagemaker/train.md
-- title: "MTEB: Massive Text Embedding Benchmark" thumbnail: /blog/assets/110_mteb/thumbnail.png authors: - user: Muennighoff --- # MTEB: Massive Text Embedding Benchmark MTEB is a massive benchmark for measuring the performance of text embedding models on diverse embedding tasks. The 🥇 [leaderboard](https://h...
huggingface/blog/blob/main/mteb.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/torch_fx/package_reference/optimization.mdx
-- title: Deploying 🤗 ViT on Vertex AI thumbnail: /blog/assets/97_vertex_ai/image1.png authors: - user: sayakpaul guest: true - user: chansung guest: true --- # Deploying 🤗 ViT on Vertex AI <a target="_blank" href="https://colab.research.google.com/github/huggingface/blog/blob/main/notebooks/112_vertex_ai_visi...
huggingface/blog/blob/main/deploy-vertex-ai.md
-- title: 'Few-shot learning in practice: GPT-Neo and the 🤗 Accelerated Inference API' # thumbnail: /blog/assets/22_few_shot_learning_gpt_neo_and_inference_api/thumbnail.png authors: - user: philschmid --- # Few-shot learning in practice: GPT-Neo and the 🤗 Accelerated Inference API In many Machine Learning applica...
huggingface/blog/blob/main/few-shot-learning-gpt-neo-and-inference-api.md
Evaluate predictions <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 provid...
huggingface/datasets/blob/main/docs/source/metrics.mdx
-- title: ROC AUC emoji: 🤗 colorFrom: blue colorTo: red sdk: gradio sdk_version: 3.19.1 app_file: app.py pinned: false tags: - evaluate - metric description: >- This metric computes the area under the curve (AUC) for the Receiver Operating Characteristic Curve (ROC). The return values represent how well the model u...
huggingface/evaluate/blob/main/metrics/roc_auc/README.md
Create custom Inference Handler Hugging Face Endpoints supports all of the Transformers and Sentence-Transformers tasks and can support custom tasks, including custom pre- & post-processing. The customization can be done through a [handler.py](https://huggingface.co/philschmid/distilbert-onnx-banking77/blob/main/hand...
huggingface/hf-endpoints-documentation/blob/main/docs/source/guides/custom_handler.mdx
-- title: "Director of Machine Learning Insights [Part 3: Finance Edition]" thumbnail: /blog/assets/78_ml_director_insights/thumbnail.png authors: - user: britneymuller --- # Director of Machine Learning Insights [Part 3: Finance Edition] _If you're interested in building ML solutions faster visit [hf.co/support](ht...
huggingface/blog/blob/main/ml-director-insights-3.md
# How to release # Before the release Simple checklist on how to make releases for `tokenizers`. - Freeze `master` branch. - Run all tests (Check CI has properly run) - If any significant work, check benchmarks: - `cd tokenizers && cargo bench` (needs to be run on latest release tag to measure difference if it's y...
huggingface/tokenizers/blob/main/RELEASE.md
Torch shared tensors ## TL;DR Using specific functions, which should work in most cases for you. This is not without side effects. ```python from safetensors.torch import load_model, save_model save_model(model, "model.safetensors") # Instead of save_file(model.state_dict(), "model.safetensors") load_model(model...
huggingface/safetensors/blob/main/docs/source/torch_shared_tensors.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/text_to_video.md
Gradio Demo: checkboxgroup_component ``` !pip install -q gradio ``` ``` import gradio as gr with gr.Blocks() as demo: gr.CheckboxGroup(choices=["First Choice", "Second Choice", "Third Choice"]) demo.launch() ```
gradio-app/gradio/blob/main/demo/checkboxgroup_component/run.ipynb
-- title: "Instruction-tuning Stable Diffusion with InstructPix2Pix" thumbnail: assets/instruction_tuning_sd/thumbnail.png authors: - user: sayakpaul --- # Instruction-tuning Stable Diffusion with InstructPix2Pix This post explores instruction-tuning to teach [Stable Diffusion](https://huggingface.co/blog/stable_di...
huggingface/blog/blob/main/instruction-tuning-sd.md
Gradio Demo: state_component ``` !pip install -q gradio ``` ``` import gradio as gr with gr.Blocks() as demo: gr.State() demo.launch() ```
gradio-app/gradio/blob/main/demo/state_component/run.ipynb
Introduction [[introduction]] <img src="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit0/thumbnail.png" alt="Thumbnail"/> Since the beginning of this course, we learned to train agents in a *single-agent system* where our agent was alone in its environment: it was **not...
huggingface/deep-rl-class/blob/main/units/en/unit7/introduction.mdx
RLHF Reinforcement learning from human feedback (RLHF) is a **methodology for integrating human data labels into a RL-based optimization process**. It is motivated by the **challenge of modeling human preferences**. For many questions, even if you could try and write down an equation for one ideal, humans differ on ...
huggingface/deep-rl-class/blob/main/units/en/unitbonus3/rlhf.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/transformers/blob/main/docs/source/en/model_doc/xmod.md
Noisy Student (EfficientNet) **Noisy Student Training** is a semi-supervised learning approach. It extends the idea of self-training and distillation with the use of equal-or-larger student models and noise added to the student during learning. It has three main steps: 1. train a teacher model on labeled images 2. ...
huggingface/pytorch-image-models/blob/main/hfdocs/source/models/noisy-student.mdx
`@gradio/textbox` ```html <script> import { BaseTextbox, BaseExample } from "@gradio/textbox"; </script> ``` BaseTextbox ```javascript export let value = ""; export let value_is_output = false; export let lines = 1; export let placeholder = "Type here..."; export let label: string; export let info: string ...
gradio-app/gradio/blob/main/js/textbox/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. --> # Inference Inference is the process of using a trained model to make predictions on new data. As this process can be compute-intensive, running on a...
huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/inference_client.md
!--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/main_classes/logging.md
Gradio Demo: clear_components ``` !pip install -q gradio ``` ``` # Downloading files from the demo repo import os !wget -q https://github.com/gradio-app/gradio/raw/main/demo/clear_components/__init__.py ``` ``` import gradio as gr from datetime import datetime import os import random import string import pandas...
gradio-app/gradio/blob/main/demo/clear_components/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/main_classes/callback.md
ow to add BigBird to 🤗 Transformers? ===================================== Mentor: [Patrick](https://github.com/patrickvonplaten) Begin: 12.02.2020 Estimated End: 19.03.2020 Contributor: [Vasudev](https://github.com/thevasudevgupta) Adding a new model is often difficult and requires an in-depth knowledge of the �...
huggingface/transformers/blob/main/templates/adding_a_new_model/open_model_proposals/ADD_BIG_BIRD.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. --> # Run Inference on servers Inference is the process of using a trained model to make predictions on new data. As this process can be compute-intensiv...
huggingface/huggingface_hub/blob/main/docs/source/en/guides/inference.md
Datasets server API > API on 🤗 datasets ## Configuration The service can be configured using environment variables. They are grouped by scope. ### API service See [../../libs/libapi/README.md](../../libs/libapi/README.md) for more information about the API configuration. ### Common See [../../libs/libcommon/RE...
huggingface/datasets-server/blob/main/services/api/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/attnprocessor.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/multistep_dpm_solver_inverse.md
快速开始 **先决条件**:Gradio 需要 Python 3.8 或更高版本,就是这样! ## Gradio 是做什么的? 与他人分享您的机器学习模型、API 或数据科学流程的*最佳方式之一*是创建一个**交互式应用程序**,让您的用户或同事可以在他们的浏览器中尝试演示。 Gradio 允许您**使用 Python 构建演示并共享这些演示**。通常只需几行代码!那么我们开始吧。 ## Hello, World 要通过一个简单的“Hello, World”示例运行 Gradio,请遵循以下三个步骤: 1. 使用 pip 安装 Gradio: ```bash pip install gradio ``` 2. 将...
gradio-app/gradio/blob/main/guides/cn/01_getting-started/01_quickstart.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/gpt_bigcode.md
Managing organizations ## Creating an organization Visit the [New Organization](https://hf.co/organizations/new) form to create an organization. ## Managing members New members can be added to an organization by visiting the **Organization settings** and clicking on the **Members** tab. There, you'll be able to ge...
huggingface/hub-docs/blob/main/docs/hub/organizations-managing.md
Examples In this folder we showcase some examples to use code models for downstream tasks. ## Complexity prediction In this task we want to predict the complexity of Java programs in [CodeComplex](https://huggingface.co/datasets/codeparrot/codecomplex) dataset. Using Hugging Face `trainer`, we finetuned [multilingual...
huggingface/transformers/blob/main/examples/research_projects/codeparrot/examples/README.md
@gradio/storybook ## 0.2.0 ### Features - [#6451](https://github.com/gradio-app/gradio/pull/6451) [`d92de491b`](https://github.com/gradio-app/gradio/commit/d92de491bf2fbdbbb57fe5bc23165c4933afe182) - Optimise Chromatic workflow. Thanks [@hannahblair](https://github.com/hannahblair)! ## 0.1.0 ### Features - [#54...
gradio-app/gradio/blob/main/js/storybook/CHANGELOG.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/splinter.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/token-classification/README.md
(Tensorflow) MixNet **MixNet** is a type of convolutional neural network discovered via AutoML that utilises [MixConvs](https://paperswithcode.com/method/mixconv) instead of regular [depthwise convolutions](https://paperswithcode.com/method/depthwise-convolution). The weights from this model were ported from [Tensor...
huggingface/pytorch-image-models/blob/main/hfdocs/source/models/tf-mixnet.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/push_to_hub.md
Sharing Your App How to share your Gradio app: 1. [Sharing demos with the share parameter](#sharing-demos) 2. [Hosting on HF Spaces](#hosting-on-hf-spaces) 3. [Embedding hosted spaces](#embedding-hosted-spaces) 4. [Using the API page](#api-page) 5. [Authentication](#authentication) 6. [Accessing network requests](#a...
gradio-app/gradio/blob/main/guides/01_getting-started/03_sharing-your-app.md
`@gradio/tooltip` ```javascript import { Tooltip } from "@gradio/tooltip"; ``` ```javascript export let text: string; export let x: number; export let y: number; export let color: string; ```
gradio-app/gradio/blob/main/js/tooltip/README.md
enerate a plot based on 5 inputs.
gradio-app/gradio/blob/main/demo/outbreak_forecast/DESCRIPTION.md
FrameworkSwitchCourse {fw} /> # Semantic search with FAISS[[semantic-search-with-faiss]] {#if fw === 'pt'} <CourseFloatingBanner chapter={5} classNames="absolute z-10 right-0 top-0" notebooks={[ {label: "Google Colab", value: "https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/...
huggingface/course/blob/main/chapters/en/chapter5/6.mdx
Gradio Demo: stock_forecast ``` !pip install -q gradio numpy matplotlib ``` ``` import matplotlib.pyplot as plt import numpy as np import gradio as gr def plot_forecast(final_year, companies, noise, show_legend, point_style): start_year = 2020 x = np.arange(start_year, final_year + 1) year_count = x...
gradio-app/gradio/blob/main/demo/stock_forecast/run.ipynb
Batch mapping Combining the utility of [`Dataset.map`] with batch mode is very powerful. It allows you to speed up processing, and freely control the size of the generated dataset. ## Need for speed The primary objective of batch mapping is to speed up processing. Often times, it is faster to work with batches of ...
huggingface/datasets/blob/main/docs/source/about_map_batch.mdx
he Push to Hub API. Let's have a look at the push_to_hub API. You will need to be logged in with your Hugging Face account, which you can do by executing this first cell or typing huggingface-cli login in a terminal. Just enter your username and password and click login, which will store an authentication token in the ...
huggingface/course/blob/main/subtitles/en/raw/chapter4/03b_push-to-hub-pt.md
-- title: "Deploying the AI Comic Factory using the Inference API" thumbnail: /blog/assets/165_ai_comic_factory/thumbnail.jpg authors: - user: jbilcke-hf --- # Deploying the AI Comic Factory using the Inference API We recently announced [Inference for PROs](https://huggingface.co/blog/inference-pro), our new offerin...
huggingface/blog/blob/main/ai-comic-factory.md
!-- DISABLE-FRONTMATTER-SECTIONS --> # End-of-chapter quiz[[end-of-chapter-quiz]] <CourseFloatingBanner chapter={6} classNames="absolute z-10 right-0 top-0" /> Let's test what you learned in this chapter! ### 1. When should you train a new tokenizer? <Question choices={[ { text: "When your dataset is...
huggingface/course/blob/main/chapters/en/chapter6/10.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/paint_by_example.md
FrameworkSwitchCourse {fw} /> # Training a causal language model from scratch[[training-a-causal-language-model-from-scratch]] {#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/hug...
huggingface/course/blob/main/chapters/en/chapter7/6.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/jukebox.md
simple dashboard showing pypi stats for python libraries. Updates on load, and has no buttons!
gradio-app/gradio/blob/main/demo/timeseries-forecasting-with-prophet/DESCRIPTION.md
Dreambooth for the inpainting model This script was added by @thedarkzeno . Please note that this script is not actively maintained, you can open an issue and tag @thedarkzeno or @patil-suraj though. ```bash export MODEL_NAME="runwayml/stable-diffusion-inpainting" export INSTANCE_DIR="path-to-instance-images" expor...
huggingface/diffusers/blob/main/examples/research_projects/dreambooth_inpaint/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/model_doc/nat.md
Pickle Scanning Pickle is a widely used serialization format in ML. Most notably, it is the default format for PyTorch model weights. There are dangerous arbitrary code execution attacks that can be perpetrated when you load a pickle file. We suggest loading models from users and organizations you trust, relying on ...
huggingface/hub-docs/blob/main/docs/hub/security-pickle.md
ow to ask a question on the Hugging Face forums? If you have a general question or are looking to debug your code, the forums are the place to ask. In this video we will teach you how to write a good question, to maximize the chances you will get an answer. First things first, to login on the forums, you need a Huggi...
huggingface/course/blob/main/subtitles/en/raw/chapter8/03_forums.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 a...
huggingface/datasets/blob/main/notebooks/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/transformers/blob/main/docs/source/en/model_doc/llava.md
Create a dataset for training There are many datasets on the [Hub](https://huggingface.co/datasets?task_categories=task_categories:text-to-image&sort=downloads) to train a model on, but if you can't find one you're interested in or want to use your own, you can create a dataset with the 🤗 [Datasets](hf.co/docs/datas...
huggingface/diffusers/blob/main/docs/source/en/training/create_dataset.md
Gradio Demo: neon-tts-plugin-coqui ### This demo converts text to speech in 14 languages. ``` !pip install -q gradio neon-tts-plugin-coqui==0.4.1a9 ``` ``` # Downloading files from the demo repo import os !wget -q https://github.com/gradio-app/gradio/raw/main/demo/neon-tts-plugin-coqui/packages.txt ``` ...
gradio-app/gradio/blob/main/demo/neon-tts-plugin-coqui/run.ipynb
@gradio/tooltip ## 0.1.0 ## 0.1.0-beta.2 ### Features - [#6136](https://github.com/gradio-app/gradio/pull/6136) [`667802a6c`](https://github.com/gradio-app/gradio/commit/667802a6cdbfb2ce454a3be5a78e0990b194548a) - JS Component Documentation. Thanks [@freddyaboulton](https://github.com/freddyaboulton)! ## 0.1.0-be...
gradio-app/gradio/blob/main/js/tooltip/CHANGELOG.md
``python import argparse import os import torch from torch.optim import AdamW from torch.utils.data import DataLoader from peft import ( get_peft_config, get_peft_model, get_peft_model_state_dict, set_peft_model_state_dict, LoraConfig, PeftType, PrefixTuningConfig, PromptEncoderConfig, ...
huggingface/peft/blob/main/examples/sequence_classification/LoRA.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/instructblip.md
!--- 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 a...
huggingface/datasets/blob/main/docs/README.md