text
stringlengths
5
631k
id
stringlengths
14
178
metadata
dict
__index_level_0__
int64
0
647
use candle::{DType, Device, Tensor}; use candle_nn::VarBuilder; use candle_transformers::generation::LogitsProcessor; pub use candle_transformers::models::t5::{Config, T5EncoderModel, T5ForConditionalGeneration}; use candle_wasm_example_t5::console_log; use tokenizers::Tokenizer; use wasm_bindgen::prelude::*; #[wasm_bi...
candle/candle-wasm-examples/t5/src/bin/m.rs/0
{ "file_path": "candle/candle-wasm-examples/t5/src/bin/m.rs", "repo_id": "candle", "token_count": 3593 }
63
use crate::languages::LANGUAGES; use anyhow::Error as E; use candle::{safetensors::Load, DType, Device, IndexOp, Tensor, D}; use candle_nn::{ops::softmax, VarBuilder}; pub use candle_transformers::models::whisper::{self as m, Config}; use rand::{distr::Distribution, rngs::StdRng, SeedableRng}; use serde::{Deserialize, ...
candle/candle-wasm-examples/whisper/src/worker.rs/0
{ "file_path": "candle/candle-wasm-examples/whisper/src/worker.rs", "repo_id": "candle", "token_count": 8826 }
64
[package] name = "candle-wasm-tests" version.workspace = true edition.workspace = true description = "WASM tests for candle" keywords.workspace = true categories.workspace = true [dependencies] candle = { workspace = true } rand = { workspace = true } getrandom = { version = "0.2", features = ["js"] } [dev-dependenci...
candle/candle-wasm-tests/Cargo.toml/0
{ "file_path": "candle/candle-wasm-tests/Cargo.toml", "repo_id": "candle", "token_count": 122 }
65
# Prompt templates > [!WARNING] > We now recommend using the `tokenizer` field to get the chat template directly from the hub. Just set it to your model id on the hub to automatically get the template. These are the templates used to format the conversation history for different models used in HuggingChat. Set them i...
chat-ui/PROMPTS.md/0
{ "file_path": "chat-ui/PROMPTS.md", "repo_id": "chat-ui", "token_count": 1178 }
66
- local: index title: 🤗 Chat UI - title: Installation sections: - local: installation/local title: Local - local: installation/spaces title: Spaces - local: installation/docker title: Docker - local: installation/helm title: Helm - title: Configuration sections: - loca...
chat-ui/docs/source/_toctree.yml/0
{ "file_path": "chat-ui/docs/source/_toctree.yml", "repo_id": "chat-ui", "token_count": 879 }
67
# Tools Tool calling instructs the model to generate an output matching a user-defined schema, which may be parsed for invoking external tools. The model simply chooses the tools and their parameters. Currently, only `TGI` and `Cohere` with `Command R+` are supported. <div class="flex justify-center"> <img class="blo...
chat-ui/docs/source/configuration/models/tools.md/0
{ "file_path": "chat-ui/docs/source/configuration/models/tools.md", "repo_id": "chat-ui", "token_count": 948 }
68
<script lang="ts"> interface Props { title?: string; classNames?: string; children?: import("svelte").Snippet; } let { title = "", classNames = "", children }: Props = $props(); </script> <div class="flex items-center rounded-xl bg-gray-100 p-1 text-sm dark:bg-gray-800 {classNames}"> <span class="from-pri...
chat-ui/src/lib/components/AnnouncementBanner.svelte/0
{ "file_path": "chat-ui/src/lib/components/AnnouncementBanner.svelte", "repo_id": "chat-ui", "token_count": 235 }
69
<script lang="ts"> import { MessageWebSearchUpdateType, type MessageWebSearchUpdate, } from "$lib/types/MessageUpdate"; import { isMessageWebSearchSourcesUpdate } from "$lib/utils/messageUpdates"; import CarbonError from "~icons/carbon/error-filled"; import EosIconsLoading from "~icons/eos-icons/loading"; im...
chat-ui/src/lib/components/OpenWebSearchResults.svelte/0
{ "file_path": "chat-ui/src/lib/components/OpenWebSearchResults.svelte", "repo_id": "chat-ui", "token_count": 1931 }
70
<script lang="ts"> interface Props { classNames?: string; label?: string; position?: string; } let { classNames = "", label = "Copied", position = "left-1/2 top-full transform -translate-x-1/2 translate-y-2", }: Props = $props(); </script> <div class=" pointer-events-none absolute rounded bg-black ...
chat-ui/src/lib/components/Tooltip.svelte/0
{ "file_path": "chat-ui/src/lib/components/Tooltip.svelte", "repo_id": "chat-ui", "token_count": 260 }
71
<script lang="ts"> import { createEventDispatcher } from "svelte"; import { page } from "$app/stores"; import type { MessageFile } from "$lib/types/Message"; import CarbonClose from "~icons/carbon/close"; import CarbonDocumentBlank from "~icons/carbon/document-blank"; import CarbonDownload from "~icons/carbon/dow...
chat-ui/src/lib/components/chat/UploadedFile.svelte/0
{ "file_path": "chat-ui/src/lib/components/chat/UploadedFile.svelte", "repo_id": "chat-ui", "token_count": 3554 }
72
export const PUBLIC_SEP_TOKEN = "</s>";
chat-ui/src/lib/constants/publicSepToken.ts/0
{ "file_path": "chat-ui/src/lib/constants/publicSepToken.ts", "repo_id": "chat-ui", "token_count": 16 }
73
import { collections } from "$lib/server/database"; import type { Migration } from "."; import { ObjectId } from "mongodb"; const migration: Migration = { _id: new ObjectId("000000000000000000000010"), name: "Update reports with assistantId to use contentId", up: async () => { await collections.reports.updateMany...
chat-ui/src/lib/migrations/routines/10-update-reports-assistantid.ts/0
{ "file_path": "chat-ui/src/lib/migrations/routines/10-update-reports-assistantid.ts", "repo_id": "chat-ui", "token_count": 237 }
74
import { z } from "zod"; import type { EmbeddingEndpoint, Embedding } from "../embeddingEndpoints"; import { chunk } from "$lib/utils/chunk"; import { config } from "$lib/server/config"; import { logger } from "$lib/server/logger"; export const embeddingEndpointHfApiSchema = z.object({ weight: z.number().int().positi...
chat-ui/src/lib/server/embeddingEndpoints/hfApi/embeddingHfApi.ts/0
{ "file_path": "chat-ui/src/lib/server/embeddingEndpoints/hfApi/embeddingHfApi.ts", "repo_id": "chat-ui", "token_count": 670 }
75
import type { Sharp } from "sharp"; import sharp from "sharp"; import type { MessageFile } from "$lib/types/Message"; import { z, type util } from "zod"; export interface ImageProcessorOptions<TMimeType extends string = string> { supportedMimeTypes: TMimeType[]; preferredMimeType: TMimeType; maxSizeInMB: number; m...
chat-ui/src/lib/server/endpoints/images.ts/0
{ "file_path": "chat-ui/src/lib/server/endpoints/images.ts", "repo_id": "chat-ui", "token_count": 2311 }
76
import { isURLLocal } from "../isURLLocal"; import { config } from "$lib/server/config"; import { collections } from "$lib/server/database"; import type { Assistant } from "$lib/types/Assistant"; import type { ObjectId } from "mongodb"; export async function processPreprompt(preprompt: string, user_message: string | u...
chat-ui/src/lib/server/textGeneration/assistant.ts/0
{ "file_path": "chat-ui/src/lib/server/textGeneration/assistant.ts", "repo_id": "chat-ui", "token_count": 885 }
77
import type { EmbeddingBackendModel } from "$lib/server/embeddingModels"; import { getSentenceSimilarity } from "$lib/server/sentenceSimilarity"; /** * Combines sentences together to reach the maximum character limit of the embedding model * Improves performance considerably when using CPU embedding */ export async...
chat-ui/src/lib/server/websearch/embed/combine.ts/0
{ "file_path": "chat-ui/src/lib/server/websearch/embed/combine.ts", "repo_id": "chat-ui", "token_count": 420 }
78
import { config } from "$lib/server/config"; import type { WebSearchSource } from "$lib/types/WebSearch"; export default async function search(query: string): Promise<WebSearchSource[]> { const response = await fetch( `https://www.searchapi.io/api/v1/search?engine=google&hl=en&gl=us&q=${query}`, { method: "GET...
chat-ui/src/lib/server/websearch/search/endpoints/searchApi.ts/0
{ "file_path": "chat-ui/src/lib/server/websearch/search/endpoints/searchApi.ts", "repo_id": "chat-ui", "token_count": 273 }
79
import { writable } from "svelte/store"; export interface TitleUpdate { convId: string; title: string; } export default writable<TitleUpdate | null>(null);
chat-ui/src/lib/stores/titleUpdate.ts/0
{ "file_path": "chat-ui/src/lib/stores/titleUpdate.ts", "repo_id": "chat-ui", "token_count": 50 }
80
export enum ReviewStatus { PRIVATE = "PRIVATE", PENDING = "PENDING", APPROVED = "APPROVED", DENIED = "DENIED", }
chat-ui/src/lib/types/Review.ts/0
{ "file_path": "chat-ui/src/lib/types/Review.ts", "repo_id": "chat-ui", "token_count": 50 }
81
export function deepestChild(el: HTMLElement): HTMLElement { if (el.lastElementChild && el.lastElementChild.nodeType !== Node.TEXT_NODE) { return deepestChild(el.lastElementChild as HTMLElement); } return el; }
chat-ui/src/lib/utils/deepestChild.ts/0
{ "file_path": "chat-ui/src/lib/utils/deepestChild.ts", "repo_id": "chat-ui", "token_count": 74 }
82
type UUID = ReturnType<typeof crypto.randomUUID>; export function randomUUID(): UUID { // Only on old safari / ios if (!("randomUUID" in crypto)) { return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) => ( Number(c) ^ (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (Number(c) / 4))...
chat-ui/src/lib/utils/randomUuid.ts/0
{ "file_path": "chat-ui/src/lib/utils/randomUuid.ts", "repo_id": "chat-ui", "token_count": 166 }
83
import { collections } from "$lib/server/database"; import { ObjectId } from "mongodb"; import { describe, expect, it } from "vitest"; import { insertLegacyConversation, insertLinearBranchConversation, insertSideBranchesConversation, } from "./treeHelpers.spec"; import { buildSubtree } from "./buildSubtree"; descr...
chat-ui/src/lib/utils/tree/buildSubtree.spec.ts/0
{ "file_path": "chat-ui/src/lib/utils/tree/buildSubtree.spec.ts", "repo_id": "chat-ui", "token_count": 1375 }
84
import { authCondition } from "$lib/server/auth.js"; import { requiresUser } from "$lib/server/auth.js"; import { asssistantSchema } from "./utils.js"; import { uploadAssistantAvatar } from "./utils.js"; import { collections } from "$lib/server/database.js"; import { ObjectId } from "mongodb"; import sharp from "sharp"...
chat-ui/src/routes/api/assistant/+server.ts/0
{ "file_path": "chat-ui/src/routes/api/assistant/+server.ts", "repo_id": "chat-ui", "token_count": 1214 }
85
export async function GET({ locals }) { if (locals.user) { const res = { id: locals.user._id, username: locals.user.username, name: locals.user.name, email: locals.user.email, avatarUrl: locals.user.avatarUrl, hfUserId: locals.user.hfUserId, }; return Response.json(res); } return Response.js...
chat-ui/src/routes/api/user/+server.ts/0
{ "file_path": "chat-ui/src/routes/api/user/+server.ts", "repo_id": "chat-ui", "token_count": 148 }
86
import { authCondition } from "$lib/server/auth"; import { collections } from "$lib/server/database"; import { error } from "@sveltejs/kit"; import { ObjectId } from "mongodb"; import { z } from "zod"; import type { RequestHandler } from "./$types"; import { downloadFile } from "$lib/server/files/downloadFile"; import ...
chat-ui/src/routes/conversation/[id]/output/[sha256]/+server.ts/0
{ "file_path": "chat-ui/src/routes/conversation/[id]/output/[sha256]/+server.ts", "repo_id": "chat-ui", "token_count": 593 }
87
<script lang="ts"> import { onMount } from "svelte"; import { base } from "$app/paths"; import { afterNavigate, goto, invalidateAll } from "$app/navigation"; import { page } from "$app/state"; import { useSettingsStore } from "$lib/stores/settings"; import CarbonClose from "~icons/carbon/close"; import CarbonArr...
chat-ui/src/routes/settings/(nav)/+layout.svelte/0
{ "file_path": "chat-ui/src/routes/settings/(nav)/+layout.svelte", "repo_id": "chat-ui", "token_count": 4778 }
88
<script lang="ts"> import { createBubbler } from "svelte/legacy"; const bubble = createBubbler(); import type { PageData } from "./$types"; import { goto } from "$app/navigation"; import { base } from "$app/paths"; import { page } from "$app/state"; import CarbonAdd from "~icons/carbon/add"; import CarbonHelp...
chat-ui/src/routes/tools/+page.svelte/0
{ "file_path": "chat-ui/src/routes/tools/+page.svelte", "repo_id": "chat-ui", "token_count": 5189 }
89
{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "data": { "values": "<DVC_METRIC_DATA>" }, "title": "<DVC_METRIC_TITLE>", "mark": { "type": "line" }, "encoding": { "x": { "field": "<DVC_METRIC_X>", "type": "quantitative", ...
datasets/.dvc/plots/smooth.json/0
{ "file_path": "datasets/.dvc/plots/smooth.json", "repo_id": "datasets", "token_count": 569 }
90
# Process audio data This guide shows specific methods for processing audio datasets. Learn how to: - Resample the sampling rate. - Use [`~Dataset.map`] with audio datasets. For a guide on how to process any type of dataset, take a look at the <a class="underline decoration-sky-400 decoration-2 font-semibold" href="...
datasets/docs/source/audio_process.mdx/0
{ "file_path": "datasets/docs/source/audio_process.mdx", "repo_id": "datasets", "token_count": 1144 }
91
# Semantic segmentation Semantic segmentation datasets are used to train a model to classify every pixel in an image. There are a wide variety of applications enabled by these datasets such as background removal from images, stylizing images, or scene understanding for autonomous driving. This guide will show you how ...
datasets/docs/source/semantic_segmentation.mdx/0
{ "file_path": "datasets/docs/source/semantic_segmentation.mdx", "repo_id": "datasets", "token_count": 2142 }
92
# Create a video dataset This guide will show you how to create a video dataset with `VideoFolder` and some metadata. This is a no-code solution for quickly creating a video dataset with several thousand videos. <Tip> You can control access to your dataset by requiring users to share their contact information first....
datasets/docs/source/video_dataset.mdx/0
{ "file_path": "datasets/docs/source/video_dataset.mdx", "repo_id": "datasets", "token_count": 2105 }
93
import importlib import importlib.metadata import logging import os import platform from pathlib import Path from typing import Optional from huggingface_hub import constants from packaging import version logger = logging.getLogger(__name__.split(".", 1)[0]) # to avoid circular import from .utils.logging # Dataset...
datasets/src/datasets/config.py/0
{ "file_path": "datasets/src/datasets/config.py", "repo_id": "datasets", "token_count": 4198 }
94
import os from dataclasses import dataclass, field from typing import TYPE_CHECKING, Any, ClassVar, Literal, Optional, TypedDict, Union import numpy as np import pyarrow as pa from .. import config from ..download.download_config import DownloadConfig from ..table import array_cast from ..utils.file_utils import is_l...
datasets/src/datasets/features/video.py/0
{ "file_path": "datasets/src/datasets/features/video.py", "repo_id": "datasets", "token_count": 6099 }
95
import multiprocessing import os from typing import BinaryIO, Optional, Union import fsspec from .. import Dataset, Features, NamedSplit, config from ..formatting import query_table from ..packaged_modules.csv.csv import Csv from ..utils import tqdm as hf_tqdm from ..utils.typing import NestedDataStructureLike, PathL...
datasets/src/datasets/io/csv.py/0
{ "file_path": "datasets/src/datasets/io/csv.py", "repo_id": "datasets", "token_count": 2556 }
96
import itertools from dataclasses import dataclass from typing import Optional import pyarrow as pa import datasets from datasets.features.features import require_storage_cast from datasets.table import table_cast logger = datasets.utils.logging.get_logger(__name__) @dataclass class XmlConfig(datasets.BuilderConf...
datasets/src/datasets/packaged_modules/xml/xml.py/0
{ "file_path": "datasets/src/datasets/packaged_modules/xml/xml.py", "repo_id": "datasets", "token_count": 1167 }
97
# deprecated, please use the `filelock` package instead from filelock import ( # noqa: F401 # imported for backward compatibility TODO: remove in 3.0.0 BaseFileLock, SoftFileLock, Timeout, UnixFileLock, WindowsFileLock, ) from ._filelock import FileLock # noqa: F401 # imported for backward compa...
datasets/src/datasets/utils/filelock.py/0
{ "file_path": "datasets/src/datasets/utils/filelock.py", "repo_id": "datasets", "token_count": 115 }
98
"""Utility helpers to handle progress bars in `datasets`. Example: 1. Use `datasets.utils.tqdm` as you would use `tqdm.tqdm` or `tqdm.auto.tqdm`. 2. To disable progress bars, either use `disable_progress_bars()` helper or set the environment variable `HF_DATASETS_DISABLE_PROGRESS_BARS` to 1. 3. To r...
datasets/src/datasets/utils/tqdm.py/0
{ "file_path": "datasets/src/datasets/utils/tqdm.py", "repo_id": "datasets", "token_count": 1662 }
99
import os import time import uuid from contextlib import contextmanager from typing import Optional import pytest import requests from huggingface_hub.hf_api import HfApi, RepositoryNotFoundError from huggingface_hub.utils import hf_raise_for_status from huggingface_hub.utils._headers import _http_user_agent CI_HUB_...
datasets/tests/fixtures/hub.py/0
{ "file_path": "datasets/tests/fixtures/hub.py", "repo_id": "datasets", "token_count": 3120 }
100
import h5py import numpy as np import pytest from datasets import Array2D, Array3D, Array4D, Features, List, Value, load_dataset from datasets.builder import InvalidConfigName from datasets.data_files import DataFilesDict, DataFilesList from datasets.download.streaming_download_manager import StreamingDownloadManager ...
datasets/tests/packaged_modules/test_hdf5.py/0
{ "file_path": "datasets/tests/packaged_modules/test_hdf5.py", "repo_id": "datasets", "token_count": 12337 }
101
import os import sys from pathlib import Path import pytest from datasets import Dataset, IterableDataset from datasets.distributed import split_dataset_by_node from .utils import execute_subprocess_async, get_torch_dist_unique_port, require_torch def test_split_dataset_by_node_map_style(): full_ds = Dataset.f...
datasets/tests/test_distributed.py/0
{ "file_path": "datasets/tests/test_distributed.py", "repo_id": "datasets", "token_count": 2244 }
102
import re import sys import tempfile import unittest from pathlib import Path import pytest import yaml from huggingface_hub import DatasetCard, DatasetCardData from datasets.config import METADATA_CONFIGS_FIELD from datasets.features import Features, Value from datasets.info import DatasetInfo from datasets.utils.me...
datasets/tests/test_metadata_util.py/0
{ "file_path": "datasets/tests/test_metadata_util.py", "repo_id": "datasets", "token_count": 5774 }
103
from functools import partial import torch from benchmarking_utils import BenchmarkMixin, BenchmarkScenario, model_init_fn from diffusers import WanTransformer3DModel from diffusers.utils.testing_utils import torch_device CKPT_ID = "Wan-AI/Wan2.1-T2V-14B-Diffusers" RESULT_FILENAME = "wan.csv" def get_input_dict(*...
diffusers/benchmarks/benchmarking_wan.py/0
{ "file_path": "diffusers/benchmarks/benchmarking_wan.py", "repo_id": "diffusers", "token_count": 1388 }
104
# docstyle-ignore INSTALL_CONTENT = """ # Diffusers installation ! pip install diffusers transformers datasets accelerate # To install from source instead of the last release, comment the command above and uncomment the following one. # ! pip install git+https://github.com/huggingface/diffusers.git """ notebook_first_...
diffusers/docs/source/_config.py/0
{ "file_path": "diffusers/docs/source/_config.py", "repo_id": "diffusers", "token_count": 102 }
105
<!--Copyright 2025 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...
diffusers/docs/source/en/api/logging.md/0
{ "file_path": "diffusers/docs/source/en/api/logging.md", "repo_id": "diffusers", "token_count": 1351 }
106
# Guiders Guiders are components in Modular Diffusers that control how the diffusion process is guided during generation. They implement various guidance techniques to improve generation quality and control. ## BaseGuidance [[autodoc]] diffusers.guiders.guider_utils.BaseGuidance ## ClassifierFreeGuidance [[autodoc...
diffusers/docs/source/en/api/modular_diffusers/guiders.md/0
{ "file_path": "diffusers/docs/source/en/api/modular_diffusers/guiders.md", "repo_id": "diffusers", "token_count": 380 }
107
<!--Copyright 2025 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...
diffusers/docs/source/en/api/pipelines/bria_3_2.md/0
{ "file_path": "diffusers/docs/source/en/api/pipelines/bria_3_2.md", "repo_id": "diffusers", "token_count": 560 }
108
<!--Copyright 2025 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...
diffusers/docs/source/en/api/pipelines/kandinsky3.md/0
{ "file_path": "diffusers/docs/source/en/api/pipelines/kandinsky3.md", "repo_id": "diffusers", "token_count": 816 }
109
<!--Copyright 2025 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...
diffusers/docs/source/en/api/pipelines/paint_by_example.md/0
{ "file_path": "diffusers/docs/source/en/api/pipelines/paint_by_example.md", "repo_id": "diffusers", "token_count": 815 }
110
<!--Copyright 2025 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...
diffusers/docs/source/en/api/pipelines/stable_diffusion/depth2img.md/0
{ "file_path": "diffusers/docs/source/en/api/pipelines/stable_diffusion/depth2img.md", "repo_id": "diffusers", "token_count": 558 }
111
<!--Copyright 2025 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...
diffusers/docs/source/en/api/pipelines/stable_diffusion/upscale.md/0
{ "file_path": "diffusers/docs/source/en/api/pipelines/stable_diffusion/upscale.md", "repo_id": "diffusers", "token_count": 531 }
112
<!--Copyright 2025 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...
diffusers/docs/source/en/api/schedulers/ddim_inverse.md/0
{ "file_path": "diffusers/docs/source/en/api/schedulers/ddim_inverse.md", "repo_id": "diffusers", "token_count": 284 }
113
<!--Copyright 2025 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...
diffusers/docs/source/en/conceptual/contribution.md/0
{ "file_path": "diffusers/docs/source/en/conceptual/contribution.md", "repo_id": "diffusers", "token_count": 10990 }
114
<!--Copyright 2025 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...
diffusers/docs/source/en/modular_diffusers/modular_diffusers_states.md/0
{ "file_path": "diffusers/docs/source/en/modular_diffusers/modular_diffusers_states.md", "repo_id": "diffusers", "token_count": 1020 }
115
# ParaAttention <div class="flex justify-center"> <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/para-attn/flux-performance.png"> </div> <div class="flex justify-center"> <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/d...
diffusers/docs/source/en/optimization/para_attn.md/0
{ "file_path": "diffusers/docs/source/en/optimization/para_attn.md", "repo_id": "diffusers", "token_count": 6509 }
116
<!--Copyright 2025 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...
diffusers/docs/source/en/training/controlnet.md/0
{ "file_path": "diffusers/docs/source/en/training/controlnet.md", "repo_id": "diffusers", "token_count": 4995 }
117
<!--Copyright 2025 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...
diffusers/docs/source/en/training/wuerstchen.md/0
{ "file_path": "diffusers/docs/source/en/training/wuerstchen.md", "repo_id": "diffusers", "token_count": 2906 }
118
<!--Copyright 2025 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...
diffusers/docs/source/en/using-diffusers/img2img.md/0
{ "file_path": "diffusers/docs/source/en/using-diffusers/img2img.md", "repo_id": "diffusers", "token_count": 9678 }
119
<!--Copyright 2025 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...
diffusers/docs/source/en/using-diffusers/sdxl_turbo.md/0
{ "file_path": "diffusers/docs/source/en/using-diffusers/sdxl_turbo.md", "repo_id": "diffusers", "token_count": 1714 }
120
<!--Copyright 2025 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...
diffusers/docs/source/ko/optimization/tome.md/0
{ "file_path": "diffusers/docs/source/ko/optimization/tome.md", "repo_id": "diffusers", "token_count": 4372 }
121
<!--Copyright 2025 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...
diffusers/docs/source/ko/training/unconditional_training.md/0
{ "file_path": "diffusers/docs/source/ko/training/unconditional_training.md", "repo_id": "diffusers", "token_count": 3117 }
122
<!--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...
diffusers/docs/source/ko/using-diffusers/sdxl_turbo.md/0
{ "file_path": "diffusers/docs/source/ko/using-diffusers/sdxl_turbo.md", "repo_id": "diffusers", "token_count": 2976 }
123
<!--Copyright 2025 The HuggingFace Team. All rights reserved. 根据 Apache License 2.0 版本("许可证")授权,除非符合许可证要求,否则不得使用本文件。 您可以在以下网址获取许可证副本: http://www.apache.org/licenses/LICENSE-2.0 除非适用法律要求或书面同意,本软件按"原样"分发,不附带任何明示或暗示的担保或条件。详见许可证中规定的特定语言权限和限制。 --> # Diffusion模型评估指南 <a target="_blank" href="https://colab.research.google...
diffusers/docs/source/zh/conceptual/evaluation.md/0
{ "file_path": "diffusers/docs/source/zh/conceptual/evaluation.md", "repo_id": "diffusers", "token_count": 12734 }
124
<!--版权 2025 The HuggingFace Team。保留所有权利。 根据Apache许可证2.0版("许可证")授权;除非符合许可证,否则不得使用此文件。您可以在 http://www.apache.org/licenses/LICENSE-2.0 获取许可证的副本。 除非适用法律要求或书面同意,根据许可证分发的软件是基于"按原样"基础分发的,没有任何形式的明示或暗示的保证或条件。有关许可证下特定语言的管理权限和限制,请参阅许可证。 --> # 顺序管道块 [`~modular_pipelines.SequentialPipelineBlocks`] 是一种多块类型,它将其他 [`~modular_pipe...
diffusers/docs/source/zh/modular_diffusers/sequential_pipeline_blocks.md/0
{ "file_path": "diffusers/docs/source/zh/modular_diffusers/sequential_pipeline_blocks.md", "repo_id": "diffusers", "token_count": 2053 }
125
# xDiT [xDiT](https://github.com/xdit-project/xDiT) 是一个推理引擎,专为大规模并行部署扩散变换器(DiTs)而设计。xDiT 提供了一套用于扩散模型的高效并行方法,以及 GPU 内核加速。 xDiT 支持四种并行方法,包括[统一序列并行](https://huggingface.co/papers/2405.07719)、[PipeFusion](https://huggingface.co/papers/2405.14430)、CFG 并行和数据并行。xDiT 中的这四种并行方法可以以混合方式配置,优化通信模式以最适合底层网络硬件。 与并行化正交的优化侧重于加速单个 GPU...
diffusers/docs/source/zh/optimization/xdit.md/0
{ "file_path": "diffusers/docs/source/zh/optimization/xdit.md", "repo_id": "diffusers", "token_count": 2471 }
126
<!--Copyright 2025 The HuggingFace Team. All rights reserved. 根据 Apache License 2.0 许可证(以下简称"许可证")授权; 除非符合许可证要求,否则不得使用本文件。 您可以通过以下链接获取许可证副本: http://www.apache.org/licenses/LICENSE-2.0 除非适用法律要求或书面同意,本软件按"原样"分发, 无任何明示或暗示的担保或条件。详见许可证中关于权限和限制的具体规定。 --> # 加载调度器与模型 [[open-in-colab]] Diffusion管道是由可互换的调度器(schedulers)和模型(...
diffusers/docs/source/zh/using-diffusers/schedulers.md/0
{ "file_path": "diffusers/docs/source/zh/using-diffusers/schedulers.md", "repo_id": "diffusers", "token_count": 5001 }
127
# Copyright 2025 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 applicabl...
diffusers/examples/community/fresco_v2v.py/0
{ "file_path": "diffusers/examples/community/fresco_v2v.py", "repo_id": "diffusers", "token_count": 53455 }
128
## ---------------------------------------------------------- # A SDXL pipeline can take unlimited weighted prompt # # Author: Andrew Zhu # GitHub: https://github.com/xhinker # Medium: https://medium.com/@xhinker ## ----------------------------------------------------------- import inspect import os from typing import...
diffusers/examples/community/lpw_stable_diffusion_xl.py/0
{ "file_path": "diffusers/examples/community/lpw_stable_diffusion_xl.py", "repo_id": "diffusers", "token_count": 48629 }
129
# DreamBooth training example for FLUX.1 [dev] [DreamBooth](https://huggingface.co/papers/2208.12242) is a method to personalize text2image models like stable diffusion given just a few (3~5) images of a subject. The `train_dreambooth_flux.py` script shows how to implement the training procedure and adapt it for [FLU...
diffusers/examples/dreambooth/README_flux.md/0
{ "file_path": "diffusers/examples/dreambooth/README_flux.md", "repo_id": "diffusers", "token_count": 5524 }
130
# InstructPix2Pix SDXL training example ***This is based on the original InstructPix2Pix training example.*** [Stable Diffusion XL](https://huggingface.co/papers/2307.01952) (or SDXL) is the latest image generation model that is tailored towards more photorealistic outputs with more detailed imagery and composition c...
diffusers/examples/instruct_pix2pix/README_sdxl.md/0
{ "file_path": "diffusers/examples/instruct_pix2pix/README_sdxl.md", "repo_id": "diffusers", "token_count": 3484 }
131
import d4rl # noqa import gym import tqdm from diffusers.experimental import ValueGuidedRLPipeline config = { "n_samples": 64, "horizon": 32, "num_inference_steps": 20, "n_guide_steps": 2, # can set to 0 for faster sampling, does not use value network "scale_grad_by_std": True, "scale": 0.1,...
diffusers/examples/reinforcement_learning/run_diffuser_locomotion.py/0
{ "file_path": "diffusers/examples/reinforcement_learning/run_diffuser_locomotion.py", "repo_id": "diffusers", "token_count": 724 }
132
import torch from diffusers import StableDiffusionPipeline model_id = "path-to-your-trained-model" pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to("cuda") prompt = "A photo of sks dog in a bucket" image = pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0] imag...
diffusers/examples/research_projects/colossalai/inference.py/0
{ "file_path": "diffusers/examples/research_projects/colossalai/inference.py", "repo_id": "diffusers", "token_count": 127 }
133
# from accelerate.utils import write_basic_config # # write_basic_config() import argparse import logging import math import os import shutil from pathlib import Path import accelerate import torch import torch.nn.functional as F import torch.utils.checkpoint import transformers from accelerate import Accelerator from...
diffusers/examples/research_projects/gligen/train_gligen_text.py/0
{ "file_path": "diffusers/examples/research_projects/gligen/train_gligen_text.py", "repo_id": "diffusers", "token_count": 13024 }
134
#!/bin/bash # run # accelerate config # check with # accelerate env export MODEL_DIR="PixArt-alpha/PixArt-XL-2-512x512" export OUTPUT_DIR="output/pixart-controlnet-hf-diffusers-test" accelerate launch ./train_pixart_controlnet_hf.py --mixed_precision="fp16" \ --pretrained_model_name_or_path=$MODEL_DIR \ --output_...
diffusers/examples/research_projects/pixart/train_controlnet_hf_diffusers.sh/0
{ "file_path": "diffusers/examples/research_projects/pixart/train_controlnet_hf_diffusers.sh", "repo_id": "diffusers", "token_count": 240 }
135
#!/usr/bin/env python # coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
diffusers/examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py/0
{ "file_path": "diffusers/examples/research_projects/sd3_lora_colab/train_dreambooth_lora_sd3_miniature.py", "repo_id": "diffusers", "token_count": 19443 }
136
""" Ported from Paella """ import torch from torch import nn from diffusers.configuration_utils import ConfigMixin, register_to_config from diffusers.models.modeling_utils import ModelMixin # Discriminator model ported from Paella https://github.com/dome272/Paella/blob/main/src_distributed/vqgan.py class Discrimina...
diffusers/examples/vqgan/discriminator.py/0
{ "file_path": "diffusers/examples/vqgan/discriminator.py", "repo_id": "diffusers", "token_count": 871 }
137
""" Convert a CogView3 checkpoint to the Diffusers format. This script converts a CogView3 checkpoint to the Diffusers format, which can then be used with the Diffusers library. Example usage: python scripts/convert_cogview3_to_diffusers.py \ --transformer_checkpoint_path 'your path/cogview3plus_3b/1/mp_r...
diffusers/scripts/convert_cogview3_to_diffusers.py/0
{ "file_path": "diffusers/scripts/convert_cogview3_to_diffusers.py", "repo_id": "diffusers", "token_count": 4443 }
138
import argparse from typing import Any, Dict import torch from accelerate import init_empty_weights from transformers import ( AutoModel, AutoTokenizer, CLIPImageProcessor, CLIPTextModel, CLIPTokenizer, LlavaForConditionalGeneration, ) from diffusers import ( AutoencoderKLHunyuanVideo, ...
diffusers/scripts/convert_hunyuan_video_to_diffusers.py/0
{ "file_path": "diffusers/scripts/convert_hunyuan_video_to_diffusers.py", "repo_id": "diffusers", "token_count": 6532 }
139
#!/usr/bin/env python3 import argparse import os import jax as jnp import numpy as onp import torch import torch.nn as nn from music_spectrogram_diffusion import inference from t5x import checkpoints from diffusers import DDPMScheduler, OnnxRuntimeModel, SpectrogramDiffusionPipeline from diffusers.pipelines.spectrogr...
diffusers/scripts/convert_music_spectrogram_to_diffusers.py/0
{ "file_path": "diffusers/scripts/convert_music_spectrogram_to_diffusers.py", "repo_id": "diffusers", "token_count": 4350 }
140
import argparse import os import pathlib from typing import Any, Dict import torch from accelerate import init_empty_weights from huggingface_hub import hf_hub_download from safetensors.torch import load_file from transformers import AutoProcessor, AutoTokenizer, CLIPVisionModelWithProjection, UMT5EncoderModel from d...
diffusers/scripts/convert_skyreelsv2_to_diffusers.py/0
{ "file_path": "diffusers/scripts/convert_skyreelsv2_to_diffusers.py", "repo_id": "diffusers", "token_count": 14252 }
141
# Run inside root directory of official source code: https://github.com/dome272/wuerstchen/ import os import torch from transformers import AutoTokenizer, CLIPTextModel from vqgan import VQModel from diffusers import ( DDPMWuerstchenScheduler, WuerstchenCombinedPipeline, WuerstchenDecoderPipeline, Wue...
diffusers/scripts/convert_wuerstchen.py/0
{ "file_path": "diffusers/scripts/convert_wuerstchen.py", "repo_id": "diffusers", "token_count": 2167 }
142
from .rl import ValueGuidedRLPipeline
diffusers/src/diffusers/experimental/__init__.py/0
{ "file_path": "diffusers/src/diffusers/experimental/__init__.py", "repo_id": "diffusers", "token_count": 12 }
143
# Copyright 2025 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 applicabl...
diffusers/src/diffusers/hooks/_helpers.py/0
{ "file_path": "diffusers/src/diffusers/hooks/_helpers.py", "repo_id": "diffusers", "token_count": 4292 }
144
# coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. # # 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...
diffusers/src/diffusers/loaders/peft.py/0
{ "file_path": "diffusers/src/diffusers/loaders/peft.py", "repo_id": "diffusers", "token_count": 17299 }
145
# Copyright 2025 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 applicabl...
diffusers/src/diffusers/models/attention_flax.py/0
{ "file_path": "diffusers/src/diffusers/models/attention_flax.py", "repo_id": "diffusers", "token_count": 9071 }
146
# Copyright 2025 Black Forest Labs, The HuggingFace Team and The InstantX 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/LIC...
diffusers/src/diffusers/models/controlnets/controlnet_qwenimage.py/0
{ "file_path": "diffusers/src/diffusers/models/controlnets/controlnet_qwenimage.py", "repo_id": "diffusers", "token_count": 6805 }
147
# coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. # # 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...
diffusers/src/diffusers/models/modeling_pytorch_flax_utils.py/0
{ "file_path": "diffusers/src/diffusers/models/modeling_pytorch_flax_utils.py", "repo_id": "diffusers", "token_count": 3050 }
148
# Copyright 2025 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 applicabl...
diffusers/src/diffusers/models/transformers/sana_transformer.py/0
{ "file_path": "diffusers/src/diffusers/models/transformers/sana_transformer.py", "repo_id": "diffusers", "token_count": 11260 }
149
# Copyright 2025 Alpha-VLLM Authors and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
diffusers/src/diffusers/models/transformers/transformer_lumina2.py/0
{ "file_path": "diffusers/src/diffusers/models/transformers/transformer_lumina2.py", "repo_id": "diffusers", "token_count": 10374 }
150
# Copyright 2025 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 applicabl...
diffusers/src/diffusers/models/unets/unet_2d_condition_flax.py/0
{ "file_path": "diffusers/src/diffusers/models/unets/unet_2d_condition_flax.py", "repo_id": "diffusers", "token_count": 10118 }
151
# Copyright 2025 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 applicabl...
diffusers/src/diffusers/modular_pipelines/flux/decoders.py/0
{ "file_path": "diffusers/src/diffusers/modular_pipelines/flux/decoders.py", "repo_id": "diffusers", "token_count": 1560 }
152
# Copyright 2025 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 applicabl...
diffusers/src/diffusers/modular_pipelines/wan/before_denoise.py/0
{ "file_path": "diffusers/src/diffusers/modular_pipelines/wan/before_denoise.py", "repo_id": "diffusers", "token_count": 6575 }
153
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {"pipeline_output": ["AnimateDiffPipelineOutput"]} try...
diffusers/src/diffusers/pipelines/animatediff/__init__.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/animatediff/__init__.py", "repo_id": "diffusers", "token_count": 880 }
154
from dataclasses import dataclass from typing import List, Optional, Union import numpy as np import PIL from PIL import Image from ...utils import OptionalDependencyNotAvailable, is_torch_available, is_transformers_available try: if not (is_transformers_available() and is_torch_available()): raise Opti...
diffusers/src/diffusers/pipelines/blip_diffusion/__init__.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/blip_diffusion/__init__.py", "repo_id": "diffusers", "token_count": 219 }
155
from ...models.controlnets.multicontrolnet import MultiControlNetModel from ...utils import deprecate, logging logger = logging.get_logger(__name__) class MultiControlNetModel(MultiControlNetModel): def __init__(self, *args, **kwargs): deprecation_message = "Importing `MultiControlNetModel` from `diffus...
diffusers/src/diffusers/pipelines/controlnet/multicontrolnet.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/controlnet/multicontrolnet.py", "repo_id": "diffusers", "token_count": 217 }
156
# Copyright 2022 The Music Spectrogram Diffusion Authors. # Copyright 2025 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...
diffusers/src/diffusers/pipelines/deprecated/spectrogram_diffusion/notes_encoder.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/deprecated/spectrogram_diffusion/notes_encoder.py", "repo_id": "diffusers", "token_count": 1254 }
157
# Copyright 2025 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 applicabl...
diffusers/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py", "repo_id": "diffusers", "token_count": 9883 }
158
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
diffusers/src/diffusers/pipelines/kandinsky2_2/__init__.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/kandinsky2_2/__init__.py", "repo_id": "diffusers", "token_count": 1190 }
159
# Copyright 2025 Lightricks and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
diffusers/src/diffusers/pipelines/ltx/modeling_latent_upsampler.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/ltx/modeling_latent_upsampler.py", "repo_id": "diffusers", "token_count": 3401 }
160
# Copyright 2025 Genmo and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
diffusers/src/diffusers/pipelines/mochi/pipeline_mochi.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/mochi/pipeline_mochi.py", "repo_id": "diffusers", "token_count": 15619 }
161
# coding=utf-8 # Copyright 2025 The HuggingFace Inc. team. # Copyright (c) 2022, NVIDIA CORPORATION. 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.a...
diffusers/src/diffusers/pipelines/pipeline_flax_utils.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/pipeline_flax_utils.py", "repo_id": "diffusers", "token_count": 12038 }
162