text
stringlengths
23
371k
source
stringlengths
32
152
Using 🤗 `transformers` at Hugging Face 🤗 `transformers` is a library maintained by Hugging Face and the community, for state-of-the-art Machine Learning for Pytorch, TensorFlow and JAX. It provides thousands of pretrained models to perform tasks on different modalities such as text, vision, and audio. We are a bit ...
huggingface/hub-docs/blob/main/docs/hub/transformers.md
Data types Datasets supported by Datasets Server have a tabular format, meaning a data point is represented in a row and its features are contained in columns. Using the `/first-rows` endpoint allows you to preview the first 100 rows of a dataset and information about each feature. Within the `features` key, you'll n...
huggingface/datasets-server/blob/main/docs/source/data_types.mdx
What is Reinforcement Learning? [[what-is-reinforcement-learning]] To understand Reinforcement Learning, let’s start with the big picture. ## The big picture [[the-big-picture]] The idea behind Reinforcement Learning is that an agent (an AI) will learn from the environment by **interacting with it** (through trial ...
huggingface/deep-rl-class/blob/main/units/en/unit1/what-is-rl.mdx
-- title: Perplexity emoji: 🤗 colorFrom: blue colorTo: red sdk: gradio sdk_version: 3.19.1 app_file: app.py pinned: false tags: - evaluate - metric description: >- Perplexity (PPL) is one of the most common metrics for evaluating language models. It is defined as the exponentiated average negative log-likelihood o...
huggingface/evaluate/blob/main/metrics/perplexity/README.md
-- title: "Accelerate Large Model Training using DeepSpeed" thumbnail: /blog/assets/83_accelerate_deepspeed/deepspeed-thumbnail.png authors: - user: smangrul - user: sgugger --- # Accelerate Large Model Training using DeepSpeed In this post we will look at how we can leverage the **[Accelerate](https://github.com/hu...
huggingface/blog/blob/main/accelerate-deepspeed.md
!-- DO NOT EDIT THIS FILE DIRECTLY. INSTEAD EDIT THE `readme_template.md` OR `guides/1)getting_started/1)quickstart.md` TEMPLATES AND THEN RUN `render_readme.py` SCRIPT. --> <div align="center"> [<img src="../gradio.svg" alt="gradio" width=400>](https://gradio.app)<br> <em>轻松构建 & 分享 令人愉快的机器学习程序</em> [![gradio-backen...
gradio-app/gradio/blob/main/readme_files/zh-cn/README.md
More on Examples In the [previous Guide](/main/guides/the-interface-class), we discussed how to provide example inputs for your demo to make it easier for users to try it out. Here, we dive into more details. ## Providing Examples As covered in the [Key Features](/guides/key-features/#example-inputs) guide, adding ...
gradio-app/gradio/blob/main/guides/02_building-interfaces/01_more-on-examples.md
Backend Testing Guidelines - All the tests should test Backend functionalities. Frontend functionalities and e2e tests are done in Frontend. - Make use of pytest fixtures whenever it is possible. With fixtures, objects with high initialize durations are reused within tests, ex. a client session. - All test*data resid...
gradio-app/gradio/blob/main/test/README.md
Loading methods Methods for listing and loading evaluation modules: ## List [[autodoc]] evaluate.list_evaluation_modules ## Load [[autodoc]] evaluate.load
huggingface/evaluate/blob/main/docs/source/package_reference/loading_methods.mdx
Gradio and ONNX on Hugging Face Related spaces: https://huggingface.co/spaces/onnx/EfficientNet-Lite4 Tags: ONNX, SPACES Contributed by Gradio and the <a href="https://onnx.ai/">ONNX</a> team ## Introduction In this Guide, we'll walk you through: - Introduction of ONNX, ONNX model zoo, Gradio, and Hugging Face Spa...
gradio-app/gradio/blob/main/guides/06_integrating-other-frameworks/Gradio-and-ONNX-on-Hugging-Face.md
!--Copyright 2022 The HuggingFace Team and Microsoft. All rights reserved. Licensed under the MIT License; you may not use this file except in compliance with the License. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WAR...
huggingface/transformers/blob/main/docs/source/en/model_doc/graphormer.md
Introduction [[introduction]] <img src="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit6/thumbnail.png" alt="thumbnail"/> In the last unit, we learned about Deep Q-Learning. In this value-based deep reinforcement learning algorithm, we **used a deep neural network to a...
huggingface/deep-rl-class/blob/main/units/en/unit4/introduction.mdx
Metric Card for MAE ## Metric Description Mean Absolute Error (MAE) is the mean of the magnitude of difference between the predicted and actual numeric values: ![image](https://user-images.githubusercontent.com/14205986/165824243-e1078dfd-489d-456c-a0da-cbaa28726220.png) ## How to Use At minimum, this metric req...
huggingface/datasets/blob/main/metrics/mae/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/training/unconditional_training.md
# 使用 Gradio 进行表格数据科学工作流 Related spaces: https://huggingface.co/spaces/scikit-learn/gradio-skops-integration,https://huggingface.co/spaces/scikit-learn/tabular-playground,https://huggingface.co/spaces/merve/gradio-analysis-dashboard ## 介绍 表格数据科学是机器学习中应用最广泛的领域,涉及的问题从客户分割到流失预测不等。在表格数据科学工作流的各个阶段中,将工作内容传达给利益相关者或客户可能很麻烦,这...
gradio-app/gradio/blob/main/guides/cn/05_tabular-data-science-and-plots/using-gradio-for-tabular-workflows.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/yolos.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/electra.md
Creating and sharing a new evaluation ## Setup Before you can create a new metric make sure you have all the necessary dependencies installed: ```bash pip install evaluate[template] ``` Also make sure your Hugging Face token is registered so you can connect to the Hugging Face Hub: ```bash huggingface-cli login `...
huggingface/evaluate/blob/main/docs/source/creating_and_sharing.mdx
-- title: "Case Study: Millisecond Latency using Hugging Face Infinity and modern CPUs" thumbnail: /blog/assets/46_infinity_cpu_performance/thumbnail.png authors: - user: philschmid - user: jeffboudier - user: mfuntowicz --- # Case Study: Millisecond Latency using Hugging Face Infinity and modern CPUs <script async d...
huggingface/blog/blob/main/infinity-cpu-performance.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/altclip.md
-- title: "Introducing ⚔️ AI vs. AI ⚔️ a deep reinforcement learning multi-agents competition system" thumbnail: /blog/assets/128_aivsai/thumbnail.png authors: - user: CarlCochet - user: ThomasSimonini --- # Introducing ⚔️ AI vs. AI ⚔️ a deep reinforcement learning multi-agents competition system <div align="center"...
huggingface/blog/blob/main/aivsai.md
-- title: "SetFit: Efficient Few-Shot Learning Without Prompts" thumbnail: /blog/assets/103_setfit/intel_hf_logo.png authors: - user: Unso - user: lewtun - user: luketheduke - user: dkorat - user: orenpereg - user: moshew --- # SetFit: Efficient Few-Shot Learning Without Prompts <p align="center"> <img ...
huggingface/blog/blob/main/setfit.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/vipllava.md
his translation demo takes in the text, source and target languages, and returns the translation. It uses the Transformers library to set up the model and has a title, description, and example.
gradio-app/gradio/blob/main/demo/translation/DESCRIPTION.md
Gradio Demo: model3D ``` !pip install -q gradio ``` ``` # Downloading files from the demo repo import os os.mkdir('files') !wget -q -O files/Bunny.obj https://github.com/gradio-app/gradio/raw/main/demo/model3D/files/Bunny.obj !wget -q -O files/Duck.glb https://github.com/gradio-app/gradio/raw/main/demo/model3D/fi...
gradio-app/gradio/blob/main/demo/model3D/run.ipynb
@gradio/lite ## 0.4.4 ## 0.4.4-beta.0 ### Features - [#6147](https://github.com/gradio-app/gradio/pull/6147) [`089161554`](https://github.com/gradio-app/gradio/commit/089161554ff216d01a447014b057368a1cc1bc35) - make lite private. Thanks [@pngwn](https://github.com/pngwn)! ## 0.4.3 ### Fixes - [#6032](https://gi...
gradio-app/gradio/blob/main/js/lite/CHANGELOG.md
SPNASNet **Single-Path NAS** is a novel differentiable NAS method for designing hardware-efficient ConvNets in less than 4 hours. ## How do I use this model on an image? To load a pretrained model: ```py >>> import timm >>> model = timm.create_model('spnasnet_100', pretrained=True) >>> model.eval() ``` To load an...
huggingface/pytorch-image-models/blob/main/hfdocs/source/models/spnasnet.mdx
@gradio/video ## 0.2.3 ### 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.2.2 ### Patch Changes - Updated ...
gradio-app/gradio/blob/main/js/video/CHANGELOG.md
THE LANDSCAPE OF ML DOCUMENTATION TOOLS The development of the model cards framework in 2018 was inspired by the major documentation framework efforts of Data Statements for Natural Language Processing ([Bender & Friedman, 2018](https://aclanthology.org/Q18-1041/)) and Datasheets for Datasets ([Gebru et al., 2018](htt...
huggingface/hub-docs/blob/main/docs/hub/model-card-landscape-analysis.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/transformers/blob/main/templates/adding_a_new_model/README.md
-- YAML tags (full spec here: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1): - copy-paste the tags obtained with the online tagging app: https://huggingface.co/spaces/huggingface/datasets-tagging --- # Dataset Card Creation Guide ## Table of Contents - [Dataset Card Creation Guide](#datase...
huggingface/datasets/blob/main/templates/README_guide.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/api/actuators.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/models/transformer_temporal.md
Gradio Demo: outbreak_forecast ### Generate a plot based on 5 inputs. ``` !pip install -q gradio numpy matplotlib bokeh plotly altair ``` ``` import altair import gradio as gr from math import sqrt import matplotlib.pyplot as plt import numpy as np import plotly.express as px import pandas as pd def ou...
gradio-app/gradio/blob/main/demo/outbreak_forecast/run.ipynb
@gradio/file ## 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/client@0.9.3 - @gradio/statustracker@0....
gradio-app/gradio/blob/main/js/file/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 ...
huggingface/optimum/blob/main/docs/source/exporters/tflite/package_reference/configuration.mdx
-- title: "Creating a Coding Assistant with StarCoder" thumbnail: /blog/assets/starchat_alpha/thumbnail.png authors: - user: lewtun - user: natolambert - user: nazneen - user: edbeeching - user: teven - user: sheonhan - user: philschmid - user: lvwerra - user: srush --- # Creating a Coding Assistant with StarCoder I...
huggingface/blog/blob/main/starchat-alpha.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/optimum/blob/main/examples/onnxruntime/quantization/image-classification/README.md
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) modules in ...
huggingface/pytorch-image-models/blob/main/docs/models/mobilenet-v3.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/optimizer_schedules.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_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/transformers/blob/main/docs/source/en/model_doc/kosmos-2.md
Gradio Demo: blocks_flashcards ``` !pip install -q gradio ``` ``` import random import gradio as gr demo = gr.Blocks() with demo: gr.Markdown( "Load the flashcards in the table below, then use the Practice tab to practice." ) with gr.Tab("Word Bank"): flashcards_table = gr.Datafram...
gradio-app/gradio/blob/main/demo/blocks_flashcards/run.ipynb
-- title: "AI Policy @🤗: Response to the U.S. NTIA's Request for Comment on AI Accountability" thumbnail: /blog/assets/151_policy_ntia_rfc/us_policy_thumbnail.png authors: - user: yjernite - user: meg - user: irenesolaiman --- # AI Policy @🤗: Response to the U.S. National Telecommunications and Information Administr...
huggingface/blog/blob/main/policy-ntia-rfc.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/musicldm.md
Using Keras at Hugging Face `keras` is an open-source machine learning library that uses a consistent and simple API to build models leveraging TensorFlow and its ecosystem. ## Exploring Keras in the Hub You can find over 200 `keras` models by filtering at the left of the [models page](https://huggingface.co/models...
huggingface/hub-docs/blob/main/docs/hub/keras.md
EfficientNet (Knapsack Pruned) **EfficientNet** is a convolutional neural network architecture and scaling method that uniformly scales all dimensions of depth/width/resolution using a *compound coefficient*. Unlike conventional practice that arbitrary scales these factors, the EfficientNet scaling method uniformly ...
huggingface/pytorch-image-models/blob/main/docs/models/efficientnet-pruned.md
`@gradio/json` ```html <script> import { BaseJSON } from "@gradio/json"; </script> ``` BaseJSON ```html export let value: any = {}; ```
gradio-app/gradio/blob/main/js/json/README.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/layoutlmv2.md
Tokenizer <tokenizerslangcontent> <python> ## Tokenizer [[autodoc]] tokenizers.Tokenizer - all - decoder - model - normalizer - padding - post_processor - pre_tokenizer - truncation </python> <rust> The Rust API Reference is available directly on the [Docs.rs](https://docs.rs/tokenize...
huggingface/tokenizers/blob/main/docs/source-doc-builder/api/tokenizer.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/models/overview.md
Mid-way Recap [[mid-way-recap]] Before diving into Q-Learning, let's summarize what we've just learned. We have two types of value-based functions: - State-value function: outputs the expected return if **the agent starts at a given state and acts according to the policy forever after.** - Action-value function: ou...
huggingface/deep-rl-class/blob/main/units/en/unit2/mid-way-recap.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/exporters/onnx/usage_guides/export_a_model.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 a...
huggingface/transformers/blob/main/examples/pytorch/token-classification/README.md
-- title: "Creating Privacy Preserving AI with Substra" thumbnail: /blog/assets/139_owkin-substra/thumbnail.png authors: - user: EazyAl - user: katielink - user: NimaBoscarino - user: ThibaultFy guest: true --- # Creating Privacy Preserving AI with Substra With the recent rise of generative techniques, machine le...
huggingface/blog/blob/main/owkin-substra.md
Helpful tips for testing & debugging optimum ## VSCODE If you are using vscode you might have hard time discovering the test for the "testing" menu to run tests individually or debug them. You can copy the snippet below into `.vscode/settings.json`. ```json { "python.testing.pytestArgs": [ "tests/onnxrunti...
huggingface/optimum/blob/main/tests/README.md
Main classes ## EvaluationModuleInfo The base class `EvaluationModuleInfo` implements a the logic for the subclasses `MetricInfo`, `ComparisonInfo`, and `MeasurementInfo`. [[autodoc]] evaluate.EvaluationModuleInfo [[autodoc]] evaluate.MetricInfo [[autodoc]] evaluate.ComparisonInfo [[autodoc]] evaluate.Measuremen...
huggingface/evaluate/blob/main/docs/source/package_reference/main_classes.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/schedulers/euler_ancestral.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/barthez.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/herbert.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. --> # Manage `huggingface_hub` cache-system ## Understand caching The Hugging Face Hub cache-system is designed to be the central cache shared across li...
huggingface/huggingface_hub/blob/main/docs/source/en/guides/manage-cache.md
Know your dataset There are two types of dataset objects, a regular [`Dataset`] and then an ✨ [`IterableDataset`] ✨. A [`Dataset`] provides fast random access to the rows, and memory-mapping so that loading even large datasets only uses a relatively small amount of device memory. But for really, really big datasets t...
huggingface/datasets/blob/main/docs/source/access.mdx
使用Gradio JavaScript客户端快速入门 Tags: CLIENT, API, SPACES Gradio JavaScript客户端使得使用任何Gradio应用作为API非常简单。例如,考虑一下这个[从麦克风录音的Hugging Face Space,用于转录音频文件](https://huggingface.co/spaces/abidlabs/whisper)。 ![](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/gradio-guides/whisper-screenshot.jpg) 使用`...
gradio-app/gradio/blob/main/guides/cn/06_client-libraries/02_getting-started-with-the-js-client.md
-- title: SacreBLEU emoji: 🤗 colorFrom: blue colorTo: red sdk: gradio sdk_version: 3.19.1 app_file: app.py pinned: false tags: - evaluate - metric description: >- SacreBLEU provides hassle-free computation of shareable, comparable, and reproducible BLEU scores. Inspired by Rico Sennrich's `multi-bleu-detok.perl`,...
huggingface/evaluate/blob/main/metrics/sacrebleu/README.md
-- title: Deploy Embedding Models with Hugging Face Inference Endpoints thumbnail: /blog/assets/168_inference_endpoints_embeddings/thumbnail.jpg authors: - user: philschmid --- # Deploy Embedding Models with Hugging Face Inference Endpoints The rise of Generative AI and LLMs like ChatGPT has increased the interest a...
huggingface/blog/blob/main/inference-endpoints-embeddings.md
FrameworkSwitchCourse {fw} /> # Tokenizers[[tokenizers]] {#if fw === 'pt'} <CourseFloatingBanner chapter={2} 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/chapter2/section4_pt.ipynb"},...
huggingface/course/blob/main/chapters/en/chapter2/4.mdx
-- title: "What Makes a Dialog Agent Useful?" thumbnail: /blog/assets/dialog-agents/thumbnail.png authors: - user: nazneen - user: natolambert - user: VictorSanh - user: ThomWolf --- # What Makes a Dialog Agent Useful? ## The techniques behind ChatGPT: RLHF, IFT, CoT, Red teaming, and more _This article has been t...
huggingface/blog/blob/main/dialog-agents.md
Widgets ## What's a widget? Many model repos have a widget that allows anyone to run inferences directly in the browser! Here are some examples: * [Named Entity Recognition](https://huggingface.co/spacy/en_core_web_sm?text=My+name+is+Sarah+and+I+live+in+London) using [spaCy](https://spacy.io/). * [Image Classificat...
huggingface/hub-docs/blob/main/docs/hub/models-widgets.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/sew.md
@gradio/tootils ## 0.1.7 ### Patch Changes - Updated dependencies [[`828fb9e`](https://github.com/gradio-app/gradio/commit/828fb9e6ce15b6ea08318675a2361117596a1b5d)]: - @gradio/statustracker@0.4.3 ## 0.1.6 ### Patch Changes - Updated dependencies []: - @gradio/statustracker@0.4.2 ## 0.1.5 ### Patch Changes...
gradio-app/gradio/blob/main/js/tootils/CHANGELOG.md
Quickstart Gradio is an open-source Python package that allows you to quickly **build** a demo or web application for your machine learning model, API, or any arbitary Python function. You can then **share** a link to your demo or web application in just a few seconds using Gradio's built-in sharing features. *No Jav...
gradio-app/gradio/blob/main/guides/01_getting-started/01_quickstart.md
如何创建一个聊天机器人 Tags: NLP, TEXT, CHAT Related spaces: https://huggingface.co/spaces/gradio/chatbot_streaming, https://huggingface.co/spaces/project-baize/Baize-7B, ## 简介 聊天机器人在自然语言处理 (NLP) 研究和工业界被广泛使用。由于聊天机器人是直接由客户和最终用户使用的,因此验证聊天机器人在面对各种输入提示时的行为是否符合预期至关重要。 通过使用 `gradio`,您可以轻松构建聊天机器人模型的演示,并与用户共享,或使用直观的聊天机器人图形界面自己尝试。 本...
gradio-app/gradio/blob/main/guides/cn/07_other-tutorials/creating-a-chatbot.md
Add custom Dependencies Inference Endpoints’ base image includes all required libraries to run inference on 🤗 Transformers models, but it also supports custom dependencies. This is useful if you want to: * [customize your inference pipeline](/docs/inference-endpoints/guides/custom_handler) and need additional Pytho...
huggingface/hf-endpoints-documentation/blob/main/docs/source/guides/custom_dependencies.mdx
Gradio Demo: chatbot_streaming ``` !pip install -q gradio ``` ``` import gradio as gr import random import time with gr.Blocks() as demo: chatbot = gr.Chatbot() msg = gr.Textbox() clear = gr.Button("Clear") def user(user_message, history): return "", history + [[user_message, None]] ...
gradio-app/gradio/blob/main/demo/chatbot_streaming/run.ipynb
Building a model card[[building-a-model-card]] <CourseFloatingBanner chapter={4} classNames="absolute z-10 right-0 top-0" /> The model card is a file which is arguably as important as the model and tokenizer files in a model repository. It is the central definition of the model, ensuring reusability by fello...
huggingface/course/blob/main/chapters/en/chapter4/4.mdx
Metric Card for XNLI ## Metric description The XNLI metric allows to evaluate a model's score on the [XNLI dataset](https://huggingface.co/datasets/xnli), which is a subset of a few thousand examples from the [MNLI dataset](https://huggingface.co/datasets/glue/viewer/mnli) that have been translated into a 14 differe...
huggingface/datasets/blob/main/metrics/xnli/README.md
Byte-Pair Encoding tokenization[[byte-pair-encoding-tokenization]] <CourseFloatingBanner chapter={6} 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/chapter6/section5.ipynb"}, {label:...
huggingface/course/blob/main/chapters/en/chapter6/5.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/schedulers/dpm_discrete.md
Gradio Demo: upload_button ### A simple demo showcasing the upload button used with its `upload` event trigger. ``` !pip install -q gradio ``` ``` import gradio as gr def upload_file(files): file_paths = [file.name for file in files] return file_paths with gr.Blocks() as demo: file_output =...
gradio-app/gradio/blob/main/demo/upload_button/run.ipynb
Gradio Demo: button_component ``` !pip install -q gradio ``` ``` import gradio as gr with gr.Blocks() as demo: gr.Button() demo.launch() ```
gradio-app/gradio/blob/main/demo/button_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/bertology.md
-- title: "AI for Game Development: Creating a Farming Game in 5 Days. Part 1" thumbnail: /blog/assets/124_ml-for-games/thumbnail.png authors: - user: dylanebert --- # AI for Game Development: Creating a Farming Game in 5 Days. Part 1 **Welcome to AI for Game Development!** In this series, we'll be using AI tools...
huggingface/blog/blob/main/ml-for-games-1.md
Fine-tuning for semantic segmentation using LoRA and 🤗 PEFT [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/huggingface/peft/blob/main/examples/semantic_segmentation/semantic_segmentation_peft_lora.ipynb) We provide a notebook (`semantic_segment...
huggingface/peft/blob/main/examples/semantic_segmentation/README.md
-- title: "From PyTorch DDP to Accelerate to Trainer, mastery of distributed training with ease" thumbnail: /blog/assets/111_pytorch_ddp_accelerate_transformers/thumbnail.png authors: - user: muellerzr --- # From PyTorch DDP to Accelerate to Trainer, mastery of distributed training with ease ## General Overview Thi...
huggingface/blog/blob/main/pytorch-ddp-accelerate-transformers.md
-- title: "Probabilistic Time Series Forecasting with 🤗 Transformers" thumbnail: /blog/assets/118_time-series-transformers/thumbnail.png authors: - user: nielsr - user: kashif --- # Probabilistic Time Series Forecasting with 🤗 Transformers <script async defer src="https://unpkg.com/medium-zoom-element@0/dist/mediu...
huggingface/blog/blob/main/time-series-transformers.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/optimum/blob/main/examples/onnxruntime/optimization/multiple-choice/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/outputs.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/blip_diffusion.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/longformer.md
Inception v4 **Inception-v4** is a convolutional neural network architecture that builds on previous iterations of the Inception family by simplifying the architecture and using more inception modules than [Inception-v3](https://paperswithcode.com/method/inception-v3). ## How do I use this model on an image? To load ...
huggingface/pytorch-image-models/blob/main/docs/models/inception-v4.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/internal/trainer_utils.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/controlnet.md
Gradio Demo: image_component ``` !pip install -q gradio ``` ``` import gradio as gr with gr.Blocks() as demo: gr.Image() demo.launch() ```
gradio-app/gradio/blob/main/demo/image_component/run.ipynb
`@gradio/checkbox` ```html <script> import { BaseCheckbox } from "@gradio/checkbox"; </script> ``` BaseCheckBox: ```javascript export let value = false; export let label = "Checkbox"; export let mode: "static" | "interactive"; ```
gradio-app/gradio/blob/main/js/checkbox/README.md
!--- Copyright 2021 The Google Flax Team Authors and 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 re...
huggingface/transformers/blob/main/examples/flax/question-answering/README.md
Using PEFT with custom models `peft` allows us to fine-tune models efficiently with LoRA. In this short notebook, we will demonstrate how to train a simple multilayer perceptron (MLP) using `peft`. ## Imports Make sure that you have the latest version of `peft` installed. To ensure that, run this in your Python env...
huggingface/peft/blob/main/examples/multilayer_perceptron/multilayer_perceptron_lora.ipynb
Live sessions and workshops[[live-sessions-and-workshops]] For the release of parts 1 and 2 of the course, we organized several live coding sessions and workshops. You can find links to the recordings of these sessions and workshops below. ## Live coding sessions[[live-coding-sessions]] For the first session, Sylva...
huggingface/course/blob/main/chapters/en/events/1.mdx
Gradio Demo: dropdown_component ``` !pip install -q gradio ``` ``` import gradio as gr with gr.Blocks() as demo: gr.Dropdown(choices=["First Choice", "Second Choice", "Third Choice"]) demo.launch() ```
gradio-app/gradio/blob/main/demo/dropdown_component/run.ipynb
No-license models challenge ## Context The Hugging Face Hub hosts hundreds of thousands of public models and datasets. Public doesn't necessarily mean open-source without any limitations. Authors can define which license applies to the work they share (e.g. [MIT](https://opensource.org/license/mit/), [Apache2.0](htt...
huggingface/hub-docs/blob/main/hacktoberfest_challenges/model_no_license.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/tvlt.md