text
stringlengths
5
424k
id
stringlengths
13
178
metadata
dict
__index_level_0__
int64
0
672
# 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_1d_blocks.py/0
{ "file_path": "diffusers/src/diffusers/models/unets/unet_1d_blocks.py", "repo_id": "diffusers", "token_count": 11970 }
159
# 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/vq_model.py/0
{ "file_path": "diffusers/src/diffusers/models/vq_model.py", "repo_id": "diffusers", "token_count": 490 }
160
# Copyright 2025 Qwen-Image Team 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 r...
diffusers/src/diffusers/modular_pipelines/qwenimage/denoise.py/0
{ "file_path": "diffusers/src/diffusers/modular_pipelines/qwenimage/denoise.py", "repo_id": "diffusers", "token_count": 12127 }
161
# 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/encoders.py/0
{ "file_path": "diffusers/src/diffusers/modular_pipelines/wan/encoders.py", "repo_id": "diffusers", "token_count": 4112 }
162
# Copyright 2025 Salesforce.com, inc. # 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/LICENS...
diffusers/src/diffusers/pipelines/blip_diffusion/modeling_ctx_clip.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/blip_diffusion/modeling_ctx_clip.py", "repo_id": "diffusers", "token_count": 3808 }
163
# Copyright 2025 The CogVideoX team, Tsinghua University & ZhipuAI 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.o...
diffusers/src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py", "repo_id": "diffusers", "token_count": 14786 }
164
# 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/controlnet_xs/pipeline_controlnet_xs_sd_xl.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/controlnet_xs/pipeline_controlnet_xs_sd_xl.py", "repo_id": "diffusers", "token_count": 25457 }
165
# 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/audio_diffusion/mel.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/deprecated/audio_diffusion/mel.py", "repo_id": "diffusers", "token_count": 2698 }
166
# 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/stable_diffusion_variants/pipeline_cycle_diffusion.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py", "repo_id": "diffusers", "token_count": 21373 }
167
from typing import TYPE_CHECKING from ...utils import DIFFUSERS_SLOW_IMPORT, _LazyModule _import_structure = {"pipeline_dit": ["DiTPipeline"]} if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT: from .pipeline_dit import DiTPipeline else: import sys sys.modules[__name__] = _LazyModule( __name__, ...
diffusers/src/diffusers/pipelines/dit/__init__.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/dit/__init__.py", "repo_id": "diffusers", "token_count": 177 }
168
# Copyright 2025 The HunyuanVideo Team 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 # # Un...
diffusers/src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py", "repo_id": "diffusers", "token_count": 21323 }
169
# 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/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py", "repo_id": "diffusers", "token_count": 6234 }
170
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 i...
diffusers/src/diffusers/pipelines/latent_consistency_models/__init__.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/latent_consistency_models/__init__.py", "repo_id": "diffusers", "token_count": 615 }
171
# 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/pipeline_ltx_image2video.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py", "repo_id": "diffusers", "token_count": 20335 }
172
# 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": 16189 }
173
# Copyright 2025 PixArt-Sigma 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 # # Unl...
diffusers/src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py", "repo_id": "diffusers", "token_count": 19124 }
174
# 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": 12123 }
175
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 i...
diffusers/src/diffusers/pipelines/sana/__init__.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/sana/__init__.py", "repo_id": "diffusers", "token_count": 694 }
176
# Copyright 2025 The SkyReels-V2 Team, The Wan Team 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/LICEN...
diffusers/src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/skyreels_v2/pipeline_skyreels_v2.py", "repo_id": "diffusers", "token_count": 12234 }
177
# 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/stable_diffusion/pipeline_flax_stable_diffusion.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py", "repo_id": "diffusers", "token_count": 9111 }
178
# 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/stable_diffusion/pipeline_stable_unclip.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py", "repo_id": "diffusers", "token_count": 19927 }
179
from dataclasses import dataclass from typing import List, Union import numpy as np import PIL.Image from ...utils import BaseOutput, is_flax_available @dataclass class StableDiffusionXLPipelineOutput(BaseOutput): """ Output class for Stable Diffusion pipelines. Args: images (`List[PIL.Image.Im...
diffusers/src/diffusers/pipelines/stable_diffusion_xl/pipeline_output.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/stable_diffusion_xl/pipeline_output.py", "repo_id": "diffusers", "token_count": 401 }
180
import copy import inspect from dataclasses import dataclass from typing import Any, Callable, Dict, List, Optional, Tuple, Union import numpy as np import PIL import torch import torch.nn.functional as F from torch.nn.functional import grid_sample from transformers import ( CLIPImageProcessor, CLIPTextModel, ...
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py", "repo_id": "diffusers", "token_count": 28984 }
181
from .bnb_quantizer import BnB4BitDiffusersQuantizer, BnB8BitDiffusersQuantizer from .utils import dequantize_and_replace, dequantize_bnb_weight, replace_with_bnb_linear
diffusers/src/diffusers/quantizers/bitsandbytes/__init__.py/0
{ "file_path": "diffusers/src/diffusers/quantizers/bitsandbytes/__init__.py", "repo_id": "diffusers", "token_count": 55 }
182
# 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/schedulers/__init__.py/0
{ "file_path": "diffusers/src/diffusers/schedulers/__init__.py", "repo_id": "diffusers", "token_count": 4471 }
183
# Copyright (c) 2022 Pablo Pernías MIT License # Copyright 2025 UC Berkeley Team 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://...
diffusers/src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py/0
{ "file_path": "diffusers/src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py", "repo_id": "diffusers", "token_count": 3646 }
184
# Copyright 2025 Katherine Crowson, The HuggingFace Team and hlky. 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 # # ...
diffusers/src/diffusers/schedulers/scheduling_heun_discrete.py/0
{ "file_path": "diffusers/src/diffusers/schedulers/scheduling_heun_discrete.py", "repo_id": "diffusers", "token_count": 11970 }
185
# Copyright 2025 Kakao Brain 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 requi...
diffusers/src/diffusers/schedulers/scheduling_unclip.py/0
{ "file_path": "diffusers/src/diffusers/schedulers/scheduling_unclip.py", "repo_id": "diffusers", "token_count": 6284 }
186
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..utils import DummyObject, requires_backends class NVIDIAModelOptConfig(metaclass=DummyObject): _backends = ["nvidia_modelopt"] def __init__(self, *args, **kwargs): requires_backends(self, ["nvidia_modelopt"]) @cla...
diffusers/src/diffusers/utils/dummy_nvidia_modelopt_objects.py/0
{ "file_path": "diffusers/src/diffusers/utils/dummy_nvidia_modelopt_objects.py", "repo_id": "diffusers", "token_count": 213 }
187
# 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/utils/hub_utils.py/0
{ "file_path": "diffusers/src/diffusers/utils/hub_utils.py", "repo_id": "diffusers", "token_count": 10584 }
188
# 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/video_processor.py/0
{ "file_path": "diffusers/src/diffusers/video_processor.py", "repo_id": "diffusers", "token_count": 2249 }
189
# Copyright 2025 HuggingFace Inc. # # 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 in writ...
diffusers/tests/lora/test_lora_layers_lumina2.py/0
{ "file_path": "diffusers/tests/lora/test_lora_layers_lumina2.py", "repo_id": "diffusers", "token_count": 2559 }
190
# coding=utf-8 # Copyright 2025 HuggingFace Inc. # # 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 ag...
diffusers/tests/models/autoencoders/test_models_autoencoder_kl.py/0
{ "file_path": "diffusers/tests/models/autoencoders/test_models_autoencoder_kl.py", "repo_id": "diffusers", "token_count": 8224 }
191
import unittest from unittest.mock import patch from transformers import CLIPTextModel, LongformerModel from diffusers.models import AutoModel, UNet2DConditionModel class TestAutoModel(unittest.TestCase): @patch( "diffusers.models.AutoModel.load_config", side_effect=[EnvironmentError("File not f...
diffusers/tests/models/test_models_auto.py/0
{ "file_path": "diffusers/tests/models/test_models_auto.py", "repo_id": "diffusers", "token_count": 526 }
192
# coding=utf-8 # Copyright 2025 HuggingFace Inc. # # 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 ag...
diffusers/tests/models/transformers/test_models_transformer_hidream.py/0
{ "file_path": "diffusers/tests/models/transformers/test_models_transformer_hidream.py", "repo_id": "diffusers", "token_count": 1430 }
193
# 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/tests/others/test_check_dummies.py/0
{ "file_path": "diffusers/tests/others/test_check_dummies.py", "repo_id": "diffusers", "token_count": 1872 }
194
import unittest import numpy as np import torch from PIL import Image from transformers import CLIPTextConfig, CLIPTextModel, CLIPTokenizer import diffusers from diffusers import ( AnimateDiffControlNetPipeline, AutoencoderKL, ControlNetModel, DDIMScheduler, DPMSolverMultistepScheduler, LCMSch...
diffusers/tests/pipelines/animatediff/test_animatediff_controlnet.py/0
{ "file_path": "diffusers/tests/pipelines/animatediff/test_animatediff_controlnet.py", "repo_id": "diffusers", "token_count": 9801 }
195
# coding=utf-8 # Copyright 2025 HuggingFace Inc. # # 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 ag...
diffusers/tests/pipelines/controlnet/test_controlnet_sdxl.py/0
{ "file_path": "diffusers/tests/pipelines/controlnet/test_controlnet_sdxl.py", "repo_id": "diffusers", "token_count": 19960 }
196
# coding=utf-8 # Copyright 2025 HuggingFace Inc. # # 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 ag...
diffusers/tests/pipelines/kandinsky2_2/test_kandinsky_controlnet_img2img.py/0
{ "file_path": "diffusers/tests/pipelines/kandinsky2_2/test_kandinsky_controlnet_img2img.py", "repo_id": "diffusers", "token_count": 4825 }
197
# coding=utf-8 # Copyright 2025 HuggingFace Inc. # # 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 ag...
diffusers/tests/pipelines/latent_diffusion/test_latent_diffusion_superresolution.py/0
{ "file_path": "diffusers/tests/pipelines/latent_diffusion/test_latent_diffusion_superresolution.py", "repo_id": "diffusers", "token_count": 2025 }
198
# Copyright 2023-2025 Marigold Team, ETH Zürich. All rights reserved. # Copyright 2024-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 # # ...
diffusers/tests/pipelines/marigold/test_marigold_depth.py/0
{ "file_path": "diffusers/tests/pipelines/marigold/test_marigold_depth.py", "repo_id": "diffusers", "token_count": 8837 }
199
# Copyright 2025 The HuggingFace 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 law or agreed to in...
diffusers/tests/pipelines/pag/test_pag_sana.py/0
{ "file_path": "diffusers/tests/pipelines/pag/test_pag_sana.py", "repo_id": "diffusers", "token_count": 6070 }
200
# Copyright 2024 The HuggingFace 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 law or agreed to in...
diffusers/tests/pipelines/skyreels_v2/test_skyreels_v2.py/0
{ "file_path": "diffusers/tests/pipelines/skyreels_v2/test_skyreels_v2.py", "repo_id": "diffusers", "token_count": 2013 }
201
# coding=utf-8 # Copyright 2025 HuggingFace Inc. # # 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 ag...
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion.py/0
{ "file_path": "diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion.py", "repo_id": "diffusers", "token_count": 27030 }
202
# coding=utf-8 # Copyright 2022 HuggingFace Inc. # # 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 ag...
diffusers/tests/pipelines/stable_diffusion_adapter/test_stable_diffusion_adapter.py/0
{ "file_path": "diffusers/tests/pipelines/stable_diffusion_adapter/test_stable_diffusion_adapter.py", "repo_id": "diffusers", "token_count": 14056 }
203
# coding=utf-8 # Copyright 2025 HuggingFace Inc. # # 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 ag...
diffusers/tests/pipelines/test_pipelines_auto.py/0
{ "file_path": "diffusers/tests/pipelines/test_pipelines_auto.py", "repo_id": "diffusers", "token_count": 12240 }
204
# coding=utf-8 # Copyright 2025 HuggingFace Inc. # # 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 ag...
diffusers/tests/remote/test_remote_decode.py/0
{ "file_path": "diffusers/tests/remote/test_remote_decode.py", "repo_id": "diffusers", "token_count": 9949 }
205
import torch from diffusers import EulerDiscreteScheduler from ..testing_utils import torch_device from .test_schedulers import SchedulerCommonTest class EulerDiscreteSchedulerTest(SchedulerCommonTest): scheduler_classes = (EulerDiscreteScheduler,) num_inference_steps = 10 def get_scheduler_config(self...
diffusers/tests/schedulers/test_scheduler_euler.py/0
{ "file_path": "diffusers/tests/schedulers/test_scheduler_euler.py", "repo_id": "diffusers", "token_count": 4844 }
206
import gc import unittest import torch from diffusers import ( StableDiffusionInpaintPipeline, ) from diffusers.utils import load_image from ..testing_utils import ( backend_empty_cache, enable_full_determinism, require_torch_accelerator, slow, torch_device, ) from .single_file_testing_utils ...
diffusers/tests/single_file/test_stable_diffusion_inpaint_single_file.py/0
{ "file_path": "diffusers/tests/single_file/test_stable_diffusion_inpaint_single_file.py", "repo_id": "diffusers", "token_count": 2039 }
207
# 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/utils/check_table.py/0
{ "file_path": "diffusers/utils/check_table.py", "repo_id": "diffusers", "token_count": 3011 }
208
# 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/utils/update_metadata.py/0
{ "file_path": "diffusers/utils/update_metadata.py", "repo_id": "diffusers", "token_count": 1690 }
209
# Video benchmark ## Questions What is the optimal trade-off between: - maximizing loading time with random access, - minimizing memory space on disk, - maximizing success rate of policies, - compatibility across devices/platforms for decoding videos (e.g. video players, web browsers). How to encode videos? - Whic...
lerobot/benchmarks/video/README.md/0
{ "file_path": "lerobot/benchmarks/video/README.md", "repo_id": "lerobot", "token_count": 6190 }
210
# Train RL in Simulation This guide explains how to use the `gym_hil` simulation environments as an alternative to real robots when working with the LeRobot framework for Human-In-the-Loop (HIL) reinforcement learning. `gym_hil` is a package that provides Gymnasium-compatible simulation environments specifically desi...
lerobot/docs/source/hilserl_sim.mdx/0
{ "file_path": "lerobot/docs/source/hilserl_sim.mdx", "repo_id": "lerobot", "token_count": 1552 }
211
## Paper https://diffusion-policy.cs.columbia.edu ## Citation ```bibtex @article{chi2024diffusionpolicy, author = {Cheng Chi and Zhenjia Xu and Siyuan Feng and Eric Cousineau and Yilun Du and Benjamin Burchfiel and Russ Tedrake and Shuran Song}, title ={Diffusion Policy: Visuomotor Policy Learning via Action Diffu...
lerobot/docs/source/policy_diffusion_README.md/0
{ "file_path": "lerobot/docs/source/policy_diffusion_README.md", "repo_id": "lerobot", "token_count": 130 }
212
# !/usr/bin/env python # 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/LICENSE-2.0 # #...
lerobot/examples/lekiwi/teleoperate.py/0
{ "file_path": "lerobot/examples/lekiwi/teleoperate.py", "repo_id": "lerobot", "token_count": 877 }
213
# Copyright 2024 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/LICENSE-2.0 # # Unless required by appl...
lerobot/src/lerobot/cameras/realsense/camera_realsense.py/0
{ "file_path": "lerobot/src/lerobot/cameras/realsense/camera_realsense.py", "repo_id": "lerobot", "token_count": 9040 }
214
#!/usr/bin/env python # Copyright 2024 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/LICENSE-2.0 # # ...
lerobot/src/lerobot/datasets/online_buffer.py/0
{ "file_path": "lerobot/src/lerobot/datasets/online_buffer.py", "repo_id": "lerobot", "token_count": 7351 }
215
# 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/LICENSE-2.0 # # Unless required by appl...
lerobot/src/lerobot/motors/calibration_gui.py/0
{ "file_path": "lerobot/src/lerobot/motors/calibration_gui.py", "repo_id": "lerobot", "token_count": 7469 }
216
#!/usr/bin/env python # Copyright 2024 Tony Z. Zhao and 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...
lerobot/src/lerobot/policies/act/modeling_act.py/0
{ "file_path": "lerobot/src/lerobot/policies/act/modeling_act.py", "repo_id": "lerobot", "token_count": 15408 }
217
from dataclasses import dataclass, field from lerobot.configs.policies import PreTrainedConfig from lerobot.configs.types import FeatureType, NormalizationMode, PolicyFeature from lerobot.optim.optimizers import AdamWConfig from lerobot.optim.schedulers import ( CosineDecayWithWarmupSchedulerConfig, ) from lerobot...
lerobot/src/lerobot/policies/pi0fast/configuration_pi0fast.py/0
{ "file_path": "lerobot/src/lerobot/policies/pi0fast/configuration_pi0fast.py", "repo_id": "lerobot", "token_count": 1873 }
218
#!/usr/bin/env python # Copyright 2024 Nicklas Hansen, Xiaolong Wang, Hao Su, # and 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 # # ht...
lerobot/src/lerobot/policies/tdmpc/configuration_tdmpc.py/0
{ "file_path": "lerobot/src/lerobot/policies/tdmpc/configuration_tdmpc.py", "repo_id": "lerobot", "token_count": 4265 }
219
#!/usr/bin/env python # 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/LICENSE-2.0 # # ...
lerobot/src/lerobot/processor/gym_action_processor.py/0
{ "file_path": "lerobot/src/lerobot/processor/gym_action_processor.py", "repo_id": "lerobot", "token_count": 1378 }
220
# !/usr/bin/env python # 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/LICENSE-2.0 #...
lerobot/src/lerobot/rl/learner_service.py/0
{ "file_path": "lerobot/src/lerobot/rl/learner_service.py", "repo_id": "lerobot", "token_count": 1678 }
221
# Koch v1.1 In the steps below, we explain how to assemble the Koch v1.1 robot. ## Order and assemble the parts Follow the sourcing and assembling instructions provided in this [README](https://github.com/jess-moss/koch-v1-1). This will guide you through setting up both the follower and leader arms, as shown in the ...
lerobot/src/lerobot/robots/koch_follower/koch.mdx/0
{ "file_path": "lerobot/src/lerobot/robots/koch_follower/koch.mdx", "repo_id": "lerobot", "token_count": 2918 }
222
#!/usr/bin/env python # Copyright 2024 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/LICENSE-2.0 # # ...
lerobot/src/lerobot/robots/so100_follower/so100_follower.py/0
{ "file_path": "lerobot/src/lerobot/robots/so100_follower/so100_follower.py", "repo_id": "lerobot", "token_count": 4004 }
223
#!/usr/bin/env python # Copyright 2024 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/LICENSE-2.0 # # ...
lerobot/src/lerobot/scripts/lerobot_eval.py/0
{ "file_path": "lerobot/src/lerobot/scripts/lerobot_eval.py", "repo_id": "lerobot", "token_count": 12220 }
224
# Copyright 2024 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/LICENSE-2.0 # # Unless required by appl...
lerobot/src/lerobot/teleoperators/utils.py/0
{ "file_path": "lerobot/src/lerobot/teleoperators/utils.py", "repo_id": "lerobot", "token_count": 1000 }
225
#!/usr/bin/env python # Copyright 2024 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/LICENSE-2.0 # # ...
lerobot/src/lerobot/utils/random_utils.py/0
{ "file_path": "lerobot/src/lerobot/utils/random_utils.py", "repo_id": "lerobot", "token_count": 2881 }
226
version https://git-lfs.github.com/spec/v1 oid sha256:53172b773d4a78bb3140f10280105c2c4ebcb467f3097579988d42cb87790ab9 size 3687117
lerobot/tests/artifacts/datasets/lerobot/aloha_sim_insertion_human/frame_251.safetensors/0
{ "file_path": "lerobot/tests/artifacts/datasets/lerobot/aloha_sim_insertion_human/frame_251.safetensors", "repo_id": "lerobot", "token_count": 63 }
227
version https://git-lfs.github.com/spec/v1 oid sha256:6b1e600768a8771c5fe650e038a1193597e3810f032041b2a0d021e4496381c1 size 3686488
lerobot/tests/artifacts/image_transforms/default_transforms.safetensors/0
{ "file_path": "lerobot/tests/artifacts/image_transforms/default_transforms.safetensors", "repo_id": "lerobot", "token_count": 67 }
228
version https://git-lfs.github.com/spec/v1 oid sha256:d640988f2269cf6aa03c8ee17f9d096edace83d837f90025011fafec5bf53c61 size 200
lerobot/tests/artifacts/policies/xarm_lift_medium_tdmpc_use_mpc/actions.safetensors/0
{ "file_path": "lerobot/tests/artifacts/policies/xarm_lift_medium_tdmpc_use_mpc/actions.safetensors", "repo_id": "lerobot", "token_count": 64 }
229
#!/usr/bin/env python # Copyright 2024 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/LICENSE-2.0 # # ...
lerobot/tests/conftest.py/0
{ "file_path": "lerobot/tests/conftest.py", "repo_id": "lerobot", "token_count": 1022 }
230
# Copyright 2024 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/LICENSE-2.0 # # Unless required by appl...
lerobot/tests/fixtures/hub.py/0
{ "file_path": "lerobot/tests/fixtures/hub.py", "repo_id": "lerobot", "token_count": 2563 }
231
#!/usr/bin/env python # 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/LICENSE-2.0 # # ...
lerobot/tests/policies/test_sac_config.py/0
{ "file_path": "lerobot/tests/policies/test_sac_config.py", "repo_id": "lerobot", "token_count": 2763 }
232
#!/usr/bin/env python # 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/LICENSE-2.0 # # ...
lerobot/tests/processor/test_rename_processor.py/0
{ "file_path": "lerobot/tests/processor/test_rename_processor.py", "repo_id": "lerobot", "token_count": 6850 }
233
#!/usr/bin/env python # Copyright 2024 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/LICENSE-2.0 # # ...
lerobot/tests/utils.py/0
{ "file_path": "lerobot/tests/utils.py", "repo_id": "lerobot", "token_count": 2376 }
234
# Model arguments model_name_or_path: Qwen/Qwen2.5-1.5B-Instruct model_revision: main torch_dtype: bfloat16 attn_implementation: flash_attention_2 # Data training arguments dataset_name: open-r1/verifiable-coding-problems-python dataset_prompt_column: problem_statement system_prompt: "You are a helpful AI Assistant th...
open-r1/recipes/Qwen2.5-1.5B-Instruct/grpo/config_demo_code.yaml/0
{ "file_path": "open-r1/recipes/Qwen2.5-1.5B-Instruct/grpo/config_demo_code.yaml", "repo_id": "open-r1", "token_count": 543 }
235
# coding=utf-8 # 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 requir...
open-r1/scripts/morph_router.py/0
{ "file_path": "open-r1/scripts/morph_router.py", "repo_id": "open-r1", "token_count": 2781 }
236
#!/bin/bash # this simple script will launch a bunch of piston workers on the HF science cluster N_INSTANCES=${1:-5} # Default to 5 instances for i in $(seq 1 $N_INSTANCES); do # Find random (hopefully) available port PORT=$(comm -23 <(seq 2000 10000 | sort) <(ss -tan | awk '{print $4}' | cut -d':' -f2 | so...
open-r1/slurm/piston/launch_piston_workers.sh/0
{ "file_path": "open-r1/slurm/piston/launch_piston_workers.sh", "repo_id": "open-r1", "token_count": 237 }
237
import re def fix_python3_imports(source_code): """ Fix common import and function changes between Python 3 versions Args: source_code (str): The Python source code to update Returns: str: The updated source code """ # Dictionary of patterns to replacements replacements =...
open-r1/src/open_r1/utils/competitive_programming/code_patcher.py/0
{ "file_path": "open-r1/src/open_r1/utils/competitive_programming/code_patcher.py", "repo_id": "open-r1", "token_count": 1876 }
238
# 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...
open-r1/tests/test_rewards.py/0
{ "file_path": "open-r1/tests/test_rewards.py", "repo_id": "open-r1", "token_count": 10656 }
239
<!--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...
peft/docs/source/conceptual_guides/oft.md/0
{ "file_path": "peft/docs/source/conceptual_guides/oft.md", "repo_id": "peft", "token_count": 3135 }
240
<!--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...
peft/docs/source/package_reference/auto_class.md/0
{ "file_path": "peft/docs/source/package_reference/auto_class.md", "repo_id": "peft", "token_count": 470 }
241
<!--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...
peft/docs/source/package_reference/lora.md/0
{ "file_path": "peft/docs/source/package_reference/lora.md", "repo_id": "peft", "token_count": 650 }
242
PEFT_TYPE="boft" BLOCK_NUM=8 BLOCK_SIZE=0 N_BUTTERFLY_FACTOR=1 ITER_NUM=50000 export RUN_NAME="${PEFT_TYPE}_${BLOCK_NUM}${BLOCK_SIZE}${N_BUTTERFLY_FACTOR}" export MODEL_NAME="stabilityai/stable-diffusion-2-1" # export MODEL_NAME="runwayml/stable-diffusion-v1-5" export DATASET_NAME="oftverse/control-celeba-hq" export...
peft/examples/boft_controlnet/eval.sh/0
{ "file_path": "peft/examples/boft_controlnet/eval.sh", "repo_id": "peft", "token_count": 370 }
243
<jupyter_start><jupyter_code>import os import torch from accelerate.logging import get_logger from diffusers import StableDiffusionPipeline from diffusers.utils import check_min_version from peft import PeftModel # Will error if the minimal version of diffusers is not installed. Remove at your own risks. check_min_v...
peft/examples/boft_dreambooth/dreambooth_inference.ipynb/0
{ "file_path": "peft/examples/boft_dreambooth/dreambooth_inference.ipynb", "repo_id": "peft", "token_count": 1395 }
244
<!--Copyright 2024 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...
peft/examples/hra_dreambooth/README.md/0
{ "file_path": "peft/examples/hra_dreambooth/README.md", "repo_id": "peft", "token_count": 1329 }
245
# Copyright 2023-present 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 law or...
peft/examples/int8_training/fine_tune_blip2_int8.py/0
{ "file_path": "peft/examples/int8_training/fine_tune_blip2_int8.py", "repo_id": "peft", "token_count": 1321 }
246
# Copyright 2025-present 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 law or...
peft/examples/lorafa_finetune/lorafa_finetuning.py/0
{ "file_path": "peft/examples/lorafa_finetune/lorafa_finetuning.py", "repo_id": "peft", "token_count": 3415 }
247
# QALoRA: Quantization-Aware Low-Rank Adaptation ## Introduction [QALoRA](https://huggingface.co/papers/2309.14717) is a quantization-aware version of Low-Rank Adaptation that enables efficient fine-tuning of quantized large language models. QALoRA uses input feature pooling and a specialized grouping technique to wo...
peft/examples/qalora_finetuning/README.md/0
{ "file_path": "peft/examples/qalora_finetuning/README.md", "repo_id": "peft", "token_count": 2020 }
248
# X-LoRA examples ## `xlora_inference_mistralrs.py` Perform inference of an X-LoRA model using the inference engine mistral.rs. Mistral.rs supports many base models besides Mistral, and can load models directly from saved LoRA checkpoints. Check out [adapter model docs](https://github.com/EricLBuehler/mistral.rs/blo...
peft/examples/xlora/README.md/0
{ "file_path": "peft/examples/xlora/README.md", "repo_id": "peft", "token_count": 320 }
249
{ "auto_mapping": null, "base_model_name_or_path": null, "bias": "none", "d_initial": 0.1, "fan_in_fan_out": false, "inference_mode": false, "init_weights": true, "layers_pattern": null, "layers_to_transform": null, "modules_to_save": null, "peft_type": "VERA", "projection_prng_key": 0, "r": 2...
peft/method_comparison/MetaMathQA/experiments/vera/llama-3.2-3B-default/adapter_config.json/0
{ "file_path": "peft/method_comparison/MetaMathQA/experiments/vera/llama-3.2-3B-default/adapter_config.json", "repo_id": "peft", "token_count": 193 }
250
{ "short": [ "Explain quantum computing in one paragraph.", "Write a haiku about machine learning.", "What's the difference between supervised and unsupervised learning?", "Define parameter-efficient fine-tuning in one sentence.", "List three applications of natural language processing." ], "m...
peft/method_comparison/text_generation_benchmark/configs/prompts.json/0
{ "file_path": "peft/method_comparison/text_generation_benchmark/configs/prompts.json", "repo_id": "peft", "token_count": 459 }
251
# Copyright 2025-present 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 law or...
peft/scripts/train_memory.py/0
{ "file_path": "peft/scripts/train_memory.py", "repo_id": "peft", "token_count": 4392 }
252
# Copyright 2023-present 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 law or...
peft/src/peft/tuners/__init__.py/0
{ "file_path": "peft/src/peft/tuners/__init__.py", "repo_id": "peft", "token_count": 1348 }
253
#include <torch/torch.h> #include <vector> #include <iostream> #include <torch/extension.h> std::vector<at::Tensor> forward_fast_block_diag_cuda( at::Tensor input); std::vector<at::Tensor> forward_fast_block_diag( at::Tensor input ) { return forward_fast_block_diag_cuda(input); } std::vec...
peft/src/peft/tuners/boft/fbd/fbd_cuda.cpp/0
{ "file_path": "peft/src/peft/tuners/boft/fbd/fbd_cuda.cpp", "repo_id": "peft", "token_count": 370 }
254
# Copyright 2024-present 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 law or...
peft/src/peft/tuners/ln_tuning/model.py/0
{ "file_path": "peft/src/peft/tuners/ln_tuning/model.py", "repo_id": "peft", "token_count": 1998 }
255
# Copyright 2024-present 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 law or...
peft/src/peft/tuners/lora/dora.py/0
{ "file_path": "peft/src/peft/tuners/lora/dora.py", "repo_id": "peft", "token_count": 3719 }
256
# Copyright 2025-present 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 law or...
peft/src/peft/tuners/randlora/config.py/0
{ "file_path": "peft/src/peft/tuners/randlora/config.py", "repo_id": "peft", "token_count": 3781 }
257
# Copyright 2025-present 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 law or...
peft/src/peft/tuners/trainable_tokens/model.py/0
{ "file_path": "peft/src/peft/tuners/trainable_tokens/model.py", "repo_id": "peft", "token_count": 2338 }
258