diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 2587e0fe3..a0682abe7 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -10,7 +10,6 @@ jobs: build: uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main with: - repo_owner: xenova commit_sha: ${{ github.sha }} package: transformers.js path_to_docs: transformers.js/docs/source diff --git a/.github/workflows/pr-documentation.yml b/.github/workflows/pr-documentation.yml index 5ac60b4fb..0e6415b4d 100644 --- a/.github/workflows/pr-documentation.yml +++ b/.github/workflows/pr-documentation.yml @@ -11,7 +11,6 @@ jobs: build: uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main with: - repo_owner: xenova commit_sha: ${{ github.sha }} pr_number: ${{ github.event.number }} package: transformers.js diff --git a/README.md b/README.md index b5df82a9e..34e5a475b 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ jsDelivr Hits - - License + + License Documentation @@ -114,18 +114,18 @@ Want to jump straight in? Get started with one of our sample applications/templa |-------------------|----------------------------------|-------------------------------| | Whisper Web | Speech recognition w/ Whisper | [code](https://github.com/xenova/whisper-web), [demo](https://huggingface.co/spaces/Xenova/whisper-web) | | Doodle Dash | Real-time sketch-recognition game | [blog](https://huggingface.co/blog/ml-web-games), [code](https://github.com/xenova/doodle-dash), [demo](https://huggingface.co/spaces/Xenova/doodle-dash) | -| Code Playground | In-browser code completion website | [code](https://github.com/xenova/transformers.js/tree/main/examples/code-completion/), [demo](https://huggingface.co/spaces/Xenova/ai-code-playground) | -| Semantic Image Search (client-side) | Search for images with text | [code](https://github.com/xenova/transformers.js/tree/main/examples/semantic-image-search-client/), [demo](https://huggingface.co/spaces/Xenova/semantic-image-search-client) | -| Semantic Image Search (server-side) | Search for images with text (Supabase) | [code](https://github.com/xenova/transformers.js/tree/main/examples/semantic-image-search/), [demo](https://huggingface.co/spaces/Xenova/semantic-image-search) | -| Vanilla JavaScript | In-browser object detection | [video](https://scrimba.com/scrim/cKm9bDAg), [code](https://github.com/xenova/transformers.js/tree/main/examples/vanilla-js/), [demo](https://huggingface.co/spaces/Scrimba/vanilla-js-object-detector) | -| React | Multilingual translation website | [code](https://github.com/xenova/transformers.js/tree/main/examples/react-translator/), [demo](https://huggingface.co/spaces/Xenova/react-translator) | -| Text to speech (client-side) | In-browser speech synthesis | [code](https://github.com/xenova/transformers.js/tree/main/examples/text-to-speech-client/), [demo](https://huggingface.co/spaces/Xenova/text-to-speech-client) | -| Browser extension | Text classification extension | [code](https://github.com/xenova/transformers.js/tree/main/examples/extension/) | -| Electron | Text classification application | [code](https://github.com/xenova/transformers.js/tree/main/examples/electron/) | -| Next.js (client-side) | Sentiment analysis (in-browser inference) | [code](https://github.com/xenova/transformers.js/tree/main/examples/next-client/), [demo](https://huggingface.co/spaces/Xenova/next-example-app) | -| Next.js (server-side) | Sentiment analysis (Node.js inference) | [code](https://github.com/xenova/transformers.js/tree/main/examples/next-server/), [demo](https://huggingface.co/spaces/Xenova/next-server-example-app) | -| Node.js | Sentiment analysis API | [code](https://github.com/xenova/transformers.js/tree/main/examples/node/) | -| Demo site | A collection of demos | [code](https://github.com/xenova/transformers.js/tree/main/examples/demo-site/), [demo](https://xenova.github.io/transformers.js/) | +| Code Playground | In-browser code completion website | [code](https://github.com/huggingface/transformers.js/tree/main/examples/code-completion/), [demo](https://huggingface.co/spaces/Xenova/ai-code-playground) | +| Semantic Image Search (client-side) | Search for images with text | [code](https://github.com/huggingface/transformers.js/tree/main/examples/semantic-image-search-client/), [demo](https://huggingface.co/spaces/Xenova/semantic-image-search-client) | +| Semantic Image Search (server-side) | Search for images with text (Supabase) | [code](https://github.com/huggingface/transformers.js/tree/main/examples/semantic-image-search/), [demo](https://huggingface.co/spaces/Xenova/semantic-image-search) | +| Vanilla JavaScript | In-browser object detection | [video](https://scrimba.com/scrim/cKm9bDAg), [code](https://github.com/huggingface/transformers.js/tree/main/examples/vanilla-js/), [demo](https://huggingface.co/spaces/Scrimba/vanilla-js-object-detector) | +| React | Multilingual translation website | [code](https://github.com/huggingface/transformers.js/tree/main/examples/react-translator/), [demo](https://huggingface.co/spaces/Xenova/react-translator) | +| Text to speech (client-side) | In-browser speech synthesis | [code](https://github.com/huggingface/transformers.js/tree/main/examples/text-to-speech-client/), [demo](https://huggingface.co/spaces/Xenova/text-to-speech-client) | +| Browser extension | Text classification extension | [code](https://github.com/huggingface/transformers.js/tree/main/examples/extension/) | +| Electron | Text classification application | [code](https://github.com/huggingface/transformers.js/tree/main/examples/electron/) | +| Next.js (client-side) | Sentiment analysis (in-browser inference) | [code](https://github.com/huggingface/transformers.js/tree/main/examples/next-client/), [demo](https://huggingface.co/spaces/Xenova/next-example-app) | +| Next.js (server-side) | Sentiment analysis (Node.js inference) | [code](https://github.com/huggingface/transformers.js/tree/main/examples/next-server/), [demo](https://huggingface.co/spaces/Xenova/next-server-example-app) | +| Node.js | Sentiment analysis API | [code](https://github.com/huggingface/transformers.js/tree/main/examples/node/) | +| Demo site | A collection of demos | [code](https://github.com/huggingface/transformers.js/tree/main/examples/demo-site/), [demo](https://xenova.github.io/transformers.js/) | Check out the Transformers.js [template](https://huggingface.co/new-space?template=static-templates%2Ftransformers.js) on Hugging Face to get started in one click! @@ -155,7 +155,7 @@ For a full list of available settings, check out the [API Reference](https://hug ### Convert your models to ONNX -We recommend using our [conversion script](https://github.com/xenova/transformers.js/blob/main/scripts/convert.py) to convert your PyTorch, TensorFlow, or JAX models to ONNX in a single command. Behind the scenes, it uses [🤗 Optimum](https://huggingface.co/docs/optimum) to perform conversion and quantization of your model. +We recommend using our [conversion script](https://github.com/huggingface/transformers.js/blob/main/scripts/convert.py) to convert your PyTorch, TensorFlow, or JAX models to ONNX in a single command. Behind the scenes, it uses [🤗 Optimum](https://huggingface.co/docs/optimum) to perform conversion and quantization of your model. ```bash python -m scripts.convert --quantize --model_id @@ -185,7 +185,7 @@ For the full list of supported architectures, see the [Optimum documentation](ht Here is the list of all tasks and architectures currently supported by Transformers.js. If you don't see your task/model listed here or it is not yet supported, feel free -to open up a feature request [here](https://github.com/xenova/transformers.js/issues/new/choose). +to open up a feature request [here](https://github.com/huggingface/transformers.js/issues/new/choose). To find compatible models on the Hub, select the "transformers.js" library tag in the filter menu (or visit [this link](https://huggingface.co/models?library=transformers.js)). You can refine your search by selecting the task you're interested in (e.g., [text-classification](https://huggingface.co/models?pipeline_tag=text-classification&library=transformers.js)). diff --git a/docs/scripts/build_readme.py b/docs/scripts/build_readme.py index 810585c11..611c5b3f6 100644 --- a/docs/scripts/build_readme.py +++ b/docs/scripts/build_readme.py @@ -22,8 +22,8 @@ jsDelivr Hits - - License + + License Documentation @@ -52,7 +52,7 @@ Here is the list of all tasks and architectures currently supported by Transformers.js. If you don't see your task/model listed here or it is not yet supported, feel free -to open up a feature request [here](https://github.com/xenova/transformers.js/issues/new/choose). +to open up a feature request [here](https://github.com/huggingface/transformers.js/issues/new/choose). To find compatible models on the Hub, select the "transformers.js" library tag in the filter menu (or visit [this link](https://huggingface.co/models?library=transformers.js)). You can refine your search by selecting the task you're interested in (e.g., [text-classification](https://huggingface.co/models?pipeline_tag=text-classification&library=transformers.js)). diff --git a/docs/snippets/3_examples.snippet b/docs/snippets/3_examples.snippet index 1ee5cc49a..f8bf7ed1c 100644 --- a/docs/snippets/3_examples.snippet +++ b/docs/snippets/3_examples.snippet @@ -4,17 +4,17 @@ Want to jump straight in? Get started with one of our sample applications/templa |-------------------|----------------------------------|-------------------------------| | Whisper Web | Speech recognition w/ Whisper | [code](https://github.com/xenova/whisper-web), [demo](https://huggingface.co/spaces/Xenova/whisper-web) | | Doodle Dash | Real-time sketch-recognition game | [blog](https://huggingface.co/blog/ml-web-games), [code](https://github.com/xenova/doodle-dash), [demo](https://huggingface.co/spaces/Xenova/doodle-dash) | -| Code Playground | In-browser code completion website | [code](https://github.com/xenova/transformers.js/tree/main/examples/code-completion/), [demo](https://huggingface.co/spaces/Xenova/ai-code-playground) | -| Semantic Image Search (client-side) | Search for images with text | [code](https://github.com/xenova/transformers.js/tree/main/examples/semantic-image-search-client/), [demo](https://huggingface.co/spaces/Xenova/semantic-image-search-client) | -| Semantic Image Search (server-side) | Search for images with text (Supabase) | [code](https://github.com/xenova/transformers.js/tree/main/examples/semantic-image-search/), [demo](https://huggingface.co/spaces/Xenova/semantic-image-search) | -| Vanilla JavaScript | In-browser object detection | [video](https://scrimba.com/scrim/cKm9bDAg), [code](https://github.com/xenova/transformers.js/tree/main/examples/vanilla-js/), [demo](https://huggingface.co/spaces/Scrimba/vanilla-js-object-detector) | -| React | Multilingual translation website | [code](https://github.com/xenova/transformers.js/tree/main/examples/react-translator/), [demo](https://huggingface.co/spaces/Xenova/react-translator) | -| Text to speech (client-side) | In-browser speech synthesis | [code](https://github.com/xenova/transformers.js/tree/main/examples/text-to-speech-client/), [demo](https://huggingface.co/spaces/Xenova/text-to-speech-client) | -| Browser extension | Text classification extension | [code](https://github.com/xenova/transformers.js/tree/main/examples/extension/) | -| Electron | Text classification application | [code](https://github.com/xenova/transformers.js/tree/main/examples/electron/) | -| Next.js (client-side) | Sentiment analysis (in-browser inference) | [code](https://github.com/xenova/transformers.js/tree/main/examples/next-client/), [demo](https://huggingface.co/spaces/Xenova/next-example-app) | -| Next.js (server-side) | Sentiment analysis (Node.js inference) | [code](https://github.com/xenova/transformers.js/tree/main/examples/next-server/), [demo](https://huggingface.co/spaces/Xenova/next-server-example-app) | -| Node.js | Sentiment analysis API | [code](https://github.com/xenova/transformers.js/tree/main/examples/node/) | -| Demo site | A collection of demos | [code](https://github.com/xenova/transformers.js/tree/main/examples/demo-site/), [demo](https://xenova.github.io/transformers.js/) | +| Code Playground | In-browser code completion website | [code](https://github.com/huggingface/transformers.js/tree/main/examples/code-completion/), [demo](https://huggingface.co/spaces/Xenova/ai-code-playground) | +| Semantic Image Search (client-side) | Search for images with text | [code](https://github.com/huggingface/transformers.js/tree/main/examples/semantic-image-search-client/), [demo](https://huggingface.co/spaces/Xenova/semantic-image-search-client) | +| Semantic Image Search (server-side) | Search for images with text (Supabase) | [code](https://github.com/huggingface/transformers.js/tree/main/examples/semantic-image-search/), [demo](https://huggingface.co/spaces/Xenova/semantic-image-search) | +| Vanilla JavaScript | In-browser object detection | [video](https://scrimba.com/scrim/cKm9bDAg), [code](https://github.com/huggingface/transformers.js/tree/main/examples/vanilla-js/), [demo](https://huggingface.co/spaces/Scrimba/vanilla-js-object-detector) | +| React | Multilingual translation website | [code](https://github.com/huggingface/transformers.js/tree/main/examples/react-translator/), [demo](https://huggingface.co/spaces/Xenova/react-translator) | +| Text to speech (client-side) | In-browser speech synthesis | [code](https://github.com/huggingface/transformers.js/tree/main/examples/text-to-speech-client/), [demo](https://huggingface.co/spaces/Xenova/text-to-speech-client) | +| Browser extension | Text classification extension | [code](https://github.com/huggingface/transformers.js/tree/main/examples/extension/) | +| Electron | Text classification application | [code](https://github.com/huggingface/transformers.js/tree/main/examples/electron/) | +| Next.js (client-side) | Sentiment analysis (in-browser inference) | [code](https://github.com/huggingface/transformers.js/tree/main/examples/next-client/), [demo](https://huggingface.co/spaces/Xenova/next-example-app) | +| Next.js (server-side) | Sentiment analysis (Node.js inference) | [code](https://github.com/huggingface/transformers.js/tree/main/examples/next-server/), [demo](https://huggingface.co/spaces/Xenova/next-server-example-app) | +| Node.js | Sentiment analysis API | [code](https://github.com/huggingface/transformers.js/tree/main/examples/node/) | +| Demo site | A collection of demos | [code](https://github.com/huggingface/transformers.js/tree/main/examples/demo-site/), [demo](https://xenova.github.io/transformers.js/) | Check out the Transformers.js [template](https://huggingface.co/new-space?template=static-templates%2Ftransformers.js) on Hugging Face to get started in one click! diff --git a/docs/snippets/4_custom-usage.snippet b/docs/snippets/4_custom-usage.snippet index 0e918bc49..1a82feebd 100644 --- a/docs/snippets/4_custom-usage.snippet +++ b/docs/snippets/4_custom-usage.snippet @@ -21,7 +21,7 @@ For a full list of available settings, check out the [API Reference](./api/env). ### Convert your models to ONNX -We recommend using our [conversion script](https://github.com/xenova/transformers.js/blob/main/scripts/convert.py) to convert your PyTorch, TensorFlow, or JAX models to ONNX in a single command. Behind the scenes, it uses [🤗 Optimum](https://huggingface.co/docs/optimum) to perform conversion and quantization of your model. +We recommend using our [conversion script](https://github.com/huggingface/transformers.js/blob/main/scripts/convert.py) to convert your PyTorch, TensorFlow, or JAX models to ONNX in a single command. Behind the scenes, it uses [🤗 Optimum](https://huggingface.co/docs/optimum) to perform conversion and quantization of your model. ```bash python -m scripts.convert --quantize --model_id diff --git a/docs/source/guides/node-audio-processing.md b/docs/source/guides/node-audio-processing.md index 4b013232d..1b9e3cfea 100644 --- a/docs/source/guides/node-audio-processing.md +++ b/docs/source/guides/node-audio-processing.md @@ -13,7 +13,7 @@ This tutorial will be written as an ES module, but you can easily adapt it to us **Useful links:** -- [Source code](https://github.com/xenova/transformers.js/tree/main/examples/node-audio-processing) +- [Source code](https://github.com/huggingface/transformers.js/tree/main/examples/node-audio-processing) - [Documentation](https://huggingface.co/docs/transformers.js) diff --git a/docs/source/index.md b/docs/source/index.md index 1b94c115f..6551e303f 100644 --- a/docs/source/index.md +++ b/docs/source/index.md @@ -35,7 +35,7 @@ The documentation is organized into 4 sections: Here is the list of all tasks and architectures currently supported by Transformers.js. If you don't see your task/model listed here or it is not yet supported, feel free -to open up a feature request [here](https://github.com/xenova/transformers.js/issues/new/choose). +to open up a feature request [here](https://github.com/huggingface/transformers.js/issues/new/choose). To find compatible models on the Hub, select the "transformers.js" library tag in the filter menu (or visit [this link](https://huggingface.co/models?library=transformers.js)). You can refine your search by selecting the task you're interested in (e.g., [text-classification](https://huggingface.co/models?pipeline_tag=text-classification&library=transformers.js)). diff --git a/docs/source/tutorials/browser-extension.md b/docs/source/tutorials/browser-extension.md index a5fd391bd..a8853c5d4 100644 --- a/docs/source/tutorials/browser-extension.md +++ b/docs/source/tutorials/browser-extension.md @@ -1,4 +1,4 @@ # Building a browser extension -*Full tutorial coming soon...* In the meantime, check out the example application: https://github.com/xenova/transformers.js/tree/main/examples/extension +*Full tutorial coming soon...* In the meantime, check out the example application: https://github.com/huggingface/transformers.js/tree/main/examples/extension diff --git a/docs/source/tutorials/electron.md b/docs/source/tutorials/electron.md index 6962e4b7e..5fb3650c1 100644 --- a/docs/source/tutorials/electron.md +++ b/docs/source/tutorials/electron.md @@ -1,3 +1,3 @@ # Building an Electron application -*Full tutorial coming soon...* In the meantime, check out the example application: https://github.com/xenova/transformers.js/tree/main/examples/electron +*Full tutorial coming soon...* In the meantime, check out the example application: https://github.com/huggingface/transformers.js/tree/main/examples/electron diff --git a/docs/source/tutorials/next.md b/docs/source/tutorials/next.md index 6ca3dfabc..0c8c70279 100644 --- a/docs/source/tutorials/next.md +++ b/docs/source/tutorials/next.md @@ -9,7 +9,7 @@ The final product will look something like this: Useful links: - Demo site: [client-side](https://huggingface.co/spaces/Xenova/next-example-app) or [server-side](https://huggingface.co/spaces/Xenova/next-server-example-app) -- Source code: [client-side](https://github.com/xenova/transformers.js/tree/main/examples/next-client) or [server-side](https://github.com/xenova/transformers.js/tree/main/examples/next-server) +- Source code: [client-side](https://github.com/huggingface/transformers.js/tree/main/examples/next-client) or [server-side](https://github.com/huggingface/transformers.js/tree/main/examples/next-server) ## Prerequisites @@ -413,7 +413,7 @@ Visit the URL shown in the terminal (e.g., [http://localhost:3000/](http://local For this demo, we will build and deploy our application to [Hugging Face Spaces](https://huggingface.co/docs/hub/spaces). If you haven't already, you can create a free Hugging Face account [here](https://huggingface.co/join). -1. Create a new `Dockerfile` in your project's root folder. You can use our [example Dockerfile](https://github.com/xenova/transformers.js/blob/main/examples/next-server/Dockerfile) as a template. +1. Create a new `Dockerfile` in your project's root folder. You can use our [example Dockerfile](https://github.com/huggingface/transformers.js/blob/main/examples/next-server/Dockerfile) as a template. 2. Visit [https://huggingface.co/new-space](https://huggingface.co/new-space) and fill in the form. Remember to select "Docker" as the space type (you can choose the "Blank" Docker template). 3. Click the "Create space" button at the bottom of the page. 4. Go to "Files" → "Add file" → "Upload files". Drag the files from your project folder (excluding `node_modules` and `.next`, if present) into the upload box and click "Upload". After they have uploaded, scroll down to the button and click "Commit changes to main". diff --git a/docs/source/tutorials/node.md b/docs/source/tutorials/node.md index 52bade2d6..7cc5cc6be 100644 --- a/docs/source/tutorials/node.md +++ b/docs/source/tutorials/node.md @@ -19,7 +19,7 @@ Although you can always use the [Python library](https://github.com/huggingface/ **Useful links:** -- Source code ([ESM](https://github.com/xenova/transformers.js/tree/main/examples/node/esm/app.js) or [CommonJS](https://github.com/xenova/transformers.js/tree/main/examples/node/commonjs/app.js)) +- Source code ([ESM](https://github.com/huggingface/transformers.js/tree/main/examples/node/esm/app.js) or [CommonJS](https://github.com/huggingface/transformers.js/tree/main/examples/node/commonjs/app.js)) - [Documentation](https://huggingface.co/docs/transformers.js) diff --git a/docs/source/tutorials/react.md b/docs/source/tutorials/react.md index 23e28b44f..e617d8a05 100644 --- a/docs/source/tutorials/react.md +++ b/docs/source/tutorials/react.md @@ -7,7 +7,7 @@ In this tutorial, we'll be building a simple React application that performs mul Useful links: - [Demo site](https://huggingface.co/spaces/Xenova/react-translator) -- [Source code](https://github.com/xenova/transformers.js/tree/main/examples/react-translator) +- [Source code](https://github.com/huggingface/transformers.js/tree/main/examples/react-translator) ## Prerequisites @@ -127,7 +127,7 @@ We recommend starting the development server again with `npm run dev` First, let's define our components. Create a folder called `components` in the `src` directory, and create the following files: -1. `LanguageSelector.jsx`: This component will allow the user to select the input and output languages. Check out the full list of languages [here](https://github.com/xenova/transformers.js/blob/main/examples/react-translator/src/components/LanguageSelector.jsx). +1. `LanguageSelector.jsx`: This component will allow the user to select the input and output languages. Check out the full list of languages [here](https://github.com/huggingface/transformers.js/blob/main/examples/react-translator/src/components/LanguageSelector.jsx). ```jsx const LANGUAGES = { "Acehnese (Arabic script)": "ace_Arab", diff --git a/docs/source/tutorials/vanilla-js.md b/docs/source/tutorials/vanilla-js.md index 822467428..58e336f12 100644 --- a/docs/source/tutorials/vanilla-js.md +++ b/docs/source/tutorials/vanilla-js.md @@ -10,7 +10,7 @@ Useful links: - [Demo site](https://huggingface.co/spaces/Scrimba/vanilla-js-object-detector) - [Interactive code walk-through (scrim)](https://scrimba.com/scrim/cKm9bDAg) -- [Source code](https://github.com/xenova/transformers.js/tree/main/examples/vanilla-js) +- [Source code](https://github.com/huggingface/transformers.js/tree/main/examples/vanilla-js) ## Step 1: HTML and CSS setup diff --git a/examples/code-completion/src/App.jsx b/examples/code-completion/src/App.jsx index a532f7299..7fc84f538 100644 --- a/examples/code-completion/src/App.jsx +++ b/examples/code-completion/src/App.jsx @@ -162,7 +162,7 @@ function App() {

In-browser code completion

- Made with ðŸ¤— Transformers.js + Made with ðŸ¤— Transformers.js
@@ -241,7 +241,7 @@ function App() { - Source code + Source code
diff --git a/examples/demo-site/src/index.html b/examples/demo-site/src/index.html index 9613acf63..49344c159 100644 --- a/examples/demo-site/src/index.html +++ b/examples/demo-site/src/index.html @@ -65,7 +65,7 @@

Transformers.js

Documentation - + View Source
diff --git a/examples/electron/README.md b/examples/electron/README.md index 3d40e0c20..898801a12 100644 --- a/examples/electron/README.md +++ b/examples/electron/README.md @@ -6,7 +6,7 @@ An example project to show how to run 🤗 Transformers in an [Electron](https:/ ## Getting Started 1. Clone the repo and enter the project directory: ```bash - git clone https://github.com/xenova/transformers.js.git + git clone https://github.com/huggingface/transformers.js.git cd transformers.js/examples/electron/ ``` 1. Install the necessary dependencies: diff --git a/examples/extension/README.md b/examples/extension/README.md index dfc81946f..4c4e0bceb 100644 --- a/examples/extension/README.md +++ b/examples/extension/README.md @@ -6,7 +6,7 @@ An example project to show how to run 🤗 Transformers in a browser extension. ## Getting Started 1. Clone the repo and enter the project directory: ```bash - git clone https://github.com/xenova/transformers.js.git + git clone https://github.com/huggingface/transformers.js.git cd transformers.js/examples/extension/ ``` 1. Install the necessary dependencies: diff --git a/examples/musicgen-web/src/App.jsx b/examples/musicgen-web/src/App.jsx index 8edc39dea..a64e8b655 100644 --- a/examples/musicgen-web/src/App.jsx +++ b/examples/musicgen-web/src/App.jsx @@ -147,7 +147,7 @@ const App = () => { return (

MusicGen Web

-

In-browser text-to-music w/ 🤗 Transformers.js! +

In-browser text-to-music w/ 🤗 Transformers.js!

{/* Text input for user */} diff --git a/examples/remove-background-client/index.html b/examples/remove-background-client/index.html index d20f9eaba..a85cef65f 100644 --- a/examples/remove-background-client/index.html +++ b/examples/remove-background-client/index.html @@ -8,7 +8,7 @@ -

Background Removal w/ 🤗 Transformers.js +

Background Removal w/ 🤗 Transformers.js

Runs locally in your browser, powered by the RMBG V1.4 model from BRIA AI diff --git a/examples/tokenizer-playground/src/App.jsx b/examples/tokenizer-playground/src/App.jsx index 1e1a286c3..1307e41c8 100644 --- a/examples/tokenizer-playground/src/App.jsx +++ b/examples/tokenizer-playground/src/App.jsx @@ -98,7 +98,7 @@ function App() {

The Tokenizer Playground

-

Experiment with different tokenizers (running locally in your browser).

+

Experiment with different tokenizers (running locally in your browser).

diff --git a/examples/video-object-detection/index.html b/examples/video-object-detection/index.html index 680b1e3bf..bd731f32c 100644 --- a/examples/video-object-detection/index.html +++ b/examples/video-object-detection/index.html @@ -10,7 +10,7 @@

Real-time object detection w/ - 🤗 Transformers.js + 🤗 Transformers.js

Runs locally in your browser, powered by diff --git a/examples/webgpu-clip/index.html b/examples/webgpu-clip/index.html index ccacd88db..4a87dacb4 100644 --- a/examples/webgpu-clip/index.html +++ b/examples/webgpu-clip/index.html @@ -13,7 +13,7 @@

Runs locally in your browser w/ - 🤗 Transformers.js + 🤗 Transformers.js

diff --git a/examples/webgpu-embedding-benchmark/index.html b/examples/webgpu-embedding-benchmark/index.html index 6ceeae4ab..8b4a9d361 100644 --- a/examples/webgpu-embedding-benchmark/index.html +++ b/examples/webgpu-embedding-benchmark/index.html @@ -9,7 +9,7 @@

- 🤗 Transformers.js WebGPU Benchmark + 🤗 Transformers.js WebGPU Benchmark

This benchmark measures the execution time of BERT-based embedding models diff --git a/examples/webgpu-video-background-removal/index.html b/examples/webgpu-video-background-removal/index.html index 59e0a8428..8e71df5a9 100644 --- a/examples/webgpu-video-background-removal/index.html +++ b/examples/webgpu-video-background-removal/index.html @@ -10,7 +10,7 @@

Real-time background removal w/ - 🤗 Transformers.js + 🤗 Transformers.js

Runs locally in your browser, powered by diff --git a/examples/webgpu-video-depth-estimation/index.html b/examples/webgpu-video-depth-estimation/index.html index 9dd633e54..c05574f67 100644 --- a/examples/webgpu-video-depth-estimation/index.html +++ b/examples/webgpu-video-depth-estimation/index.html @@ -14,7 +14,7 @@

Runs locally in your browser, powered by - 🤗 Transformers.js + 🤗 Transformers.js

diff --git a/package.json b/package.json index 32594e90f..e41c3543a 100644 --- a/package.json +++ b/package.json @@ -37,11 +37,11 @@ "readme": "python ./docs/scripts/build_readme.py", "docs-api": "node ./docs/scripts/generate.js", "docs-preview": "doc-builder preview transformers.js ./docs/source/ --not_python_module", - "docs-build": "doc-builder build transformers.js ./docs/source/ --not_python_module --build_dir ./docs/build/ --repo_owner xenova" + "docs-build": "doc-builder build transformers.js ./docs/source/ --not_python_module --build_dir ./docs/build/" }, "repository": { "type": "git", - "url": "git+https://github.com/xenova/transformers.js.git" + "url": "git+https://github.com/huggingface/transformers.js.git" }, "keywords": [ "transformers", @@ -57,9 +57,9 @@ "author": "Hugging Face", "license": "Apache-2.0", "bugs": { - "url": "https://github.com/xenova/transformers.js/issues" + "url": "https://github.com/huggingface/transformers.js/issues" }, - "homepage": "https://github.com/xenova/transformers.js#readme", + "homepage": "https://github.com/huggingface/transformers.js#readme", "dependencies": { "@huggingface/jinja": "^0.3.0", "onnxruntime-node": "1.19.2", diff --git a/src/models.js b/src/models.js index 85f9294c3..b7d2b0ee2 100644 --- a/src/models.js +++ b/src/models.js @@ -71,6 +71,10 @@ import { getModelJSON, } from './utils/hub.js'; +import { + GITHUB_ISSUE_URL, +} from './utils/constants.js'; + import { LogitsProcessorList, ForcedBOSTokenLogitsProcessor, @@ -910,7 +914,7 @@ export class PreTrainedModel extends Callable { } else { // should be MODEL_TYPES.EncoderOnly if (modelType !== MODEL_TYPES.EncoderOnly) { - console.warn(`Model type for '${modelName ?? config?.model_type}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`) + console.warn(`Model type for '${modelName ?? config?.model_type}' not found, assuming encoder-only architecture. Please report this at ${GITHUB_ISSUE_URL}.`) } info = await Promise.all([ constructSessions(pretrained_model_name_or_path, { @@ -4897,7 +4901,7 @@ export class PyAnnoteModel extends PyAnnotePreTrainedModel { } * **Example:** Load and run a `PyAnnoteForAudioFrameClassification` for speaker diarization. * * ```javascript - * import { AutoProcessor, AutoModelForAudioFrameClassification, read_audio } from '@xenova/transformers'; + * import { AutoProcessor, AutoModelForAudioFrameClassification, read_audio } from '@huggingface/transformers'; * * // Load model and processor * const model_id = 'onnx-community/pyannote-segmentation-3.0'; diff --git a/src/tokenizers.js b/src/tokenizers.js index d4c72242a..5b4e0170c 100644 --- a/src/tokenizers.js +++ b/src/tokenizers.js @@ -283,7 +283,7 @@ const PROBLEMATIC_REGEX_MAP = new Map([ ["(?i:'s|'t|'re|'ve|'m|'ll|'d)", "(?:'([sS]|[tT]|[rR][eE]|[vV][eE]|[mM]|[lL][lL]|[dD]))"], // Used to override the default (invalid) regex of the bloom pretokenizer. - // For more information, see https://github.com/xenova/transformers.js/issues/94 + // For more information, see https://github.com/huggingface/transformers.js/issues/94 [` ?[^(\\s|[${BLOOM_SPLIT_CHARS}])]+`, ` ?[^\\s${BLOOM_SPLIT_CHARS}]+`], ]) @@ -2577,7 +2577,7 @@ export class PreTrainedTokenizer extends Callable { // Another slight hack to add `end_of_word_suffix` (if present) to the decoder // This is needed for cases where BPE model and ByteLevel decoder are used - // For more information, see https://github.com/xenova/transformers.js/issues/74 + // For more information, see https://github.com/huggingface/transformers.js/issues/74 // TODO: save this to the decoder when exporting? this.decoder.end_of_word_suffix = this.model.end_of_word_suffix; } diff --git a/src/utils/constants.js b/src/utils/constants.js index 7dff34b8d..9d0e9ee42 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -1,2 +1,2 @@ -export const GITHUB_ISSUE_URL = 'https://github.com/xenova/transformers.js/issues/new/choose'; \ No newline at end of file +export const GITHUB_ISSUE_URL = 'https://github.com/huggingface/transformers.js/issues/new/choose'; \ No newline at end of file