discussion_title
stringlengths
15
149
discussion_url
stringlengths
55
178
discussion_topic_id
int64
11.3k
169k
discussion_category
int64
2
69
discussion_created_at
stringdate
2021-11-01 15:54:32
2025-10-25 07:31:09
thread
listlengths
3
20
question
stringlengths
77
20.5k
solution
stringlengths
24
23.2k
Problem with pyannote/speaker-diarization-3.1
https://discuss.huggingface.co/t/problem-with-pyannote-speaker-diarization-3-1/169415
169,415
5
2025-10-25T07:31:09.724000Z
[ { "id": 244110, "name": "MAJH", "username": "aldkela", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/{size}.png", "created_at": "2025-10-25T07:31:09.796Z", "cooked": "<p>Hello, I am trying to make some code with pyannote/speaker-diarization-3.1 but I got some error...
<p>Hello, I am trying to make some code with pyannote/speaker-diarization-3.1 but I got some error that I cannot handle now….</p> <p>This is the code I made below, I only used function “speaker_diarization” this time..</p> <pre data-code-wrap="python"><code class="lang-python">import pandas as pd from transformers impo...
<p>Problems frequently occur in Windows environments.<br> Specifically, issues related to DLLs can arise because Python 3.8 and later no longer reference the Windows <code>PATH</code> environment variable.</p> <p><a href="https://huggingface.co/datasets/John6666/forum2/blob/main/torchcodec_windows_error_1.md">Several w...
QLoRA - model isn&rsquo;t training
https://discuss.huggingface.co/t/qlora-model-isnt-training/169337
169,337
5
2025-10-22T11:19:32.837000Z
[ { "id": 243954, "name": "Anton Bartash", "username": "antbartash", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/a/46a35a/{size}.png", "created_at": "2025-10-22T11:19:32.912Z", "cooked": "<p>Hi everyone,<br>\nI’ve been trying to switch from LoRA to QLoRA on an Nvidia T4, bu...
<p>Hi everyone,<br> I’ve been trying to switch from LoRA to QLoRA on an Nvidia T4, but I’m running into an issue where the evaluation loss stays completely flat, while the training loss fluctuates around its initial value.</p> <p>My LoRA setup works fine, but adding <code>bnb_config</code>, <code>model.gradient_checkpo...
<p>Thanks for the suggestion<br> It turned out the issue was environment-related — I was able to get the expected results using the exact same code on Colab. In my local environment, clearing the caches for transformers, torch, etc., and upgrading all the libraries resolved the problem.</p>
Problem with pyannote.audio==3.1.0
https://discuss.huggingface.co/t/problem-with-pyannote-audio-3-1-0/169326
169,326
5
2025-10-21T13:54:38.497000Z
[ { "id": 243920, "name": "MAJH", "username": "aldkela", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/{size}.png", "created_at": "2025-10-21T13:54:38.567Z", "cooked": "<p>Hello, I was trying to use model named pyannote/speaker-diarization-3.1</p>\n<p>so I installed ...
<p>Hello, I was trying to use model named pyannote/speaker-diarization-3.1</p> <p>so I installed some libraries as below</p> <pre><code class="lang-auto">%pip install pyannote.audio==3.1.0 %pip install numpy==1.26 </code></pre> <p>Here is the result and I think I installed this properly…</p> <pre><code class="lang-auto...
<p>It seems like a partial hit.<img src="https://emoji.discourse-cdn.com/apple/sweat_smile.png?v=14" title=":sweat_smile:" class="emoji" alt=":sweat_smile:" loading="lazy" width="20" height="20"> The cause is a specification change due to a library version upgrade, but it appears to be because the returned object chang...
How to make my customized pipeline consumable for Transformers.js
https://discuss.huggingface.co/t/how-to-make-my-customized-pipeline-consumable-for-transformers-js/169036
169,036
5
2025-10-08T15:06:33.223000Z
[ { "id": 243309, "name": "Sicheng Mao", "username": "alephpi", "avatar_template": "/user_avatar/discuss.huggingface.co/alephpi/{size}/54288_2.png", "created_at": "2025-10-08T15:06:33.311Z", "cooked": "<p>Hi community,</p>\n<p>Here is my image-to-text pipeline:</p>\n<p>(<em>customized</em> mea...
<p>Hi community,</p> <p>Here is my image-to-text pipeline:</p> <p>(<em>customized</em> means not a registered one in official Transformers)</p> <p>A <em>customized</em> Image processor,</p> <p>A VisionEncoderDecoder, with a <em>customized</em> vision encoder that inherits the PretrainedModel and a MBartDecoder,</p> <p>...
<p>It <a href="https://huggingface.co/datasets/John6666/forum1/blob/main/transformer_js_custom_pipeline_1.md">seems possible</a>. For Transoformers.js, there’s a dedicated channel on the HF Discord, so asking there would be the most reliable option.</p>
Issue with TorchCodec when fine-tuning Whisper ASR model
https://discuss.huggingface.co/t/issue-with-torchcodec-when-fine-tuning-whisper-asr-model/169315
169,315
5
2025-10-21T07:37:40.941000Z
[ { "id": 243905, "name": "Ong Jun Rong", "username": "junnyrong", "avatar_template": "/user_avatar/discuss.huggingface.co/junnyrong/{size}/54763_2.png", "created_at": "2025-10-21T07:37:41.012Z", "cooked": "<p>Hello,</p>\n<p>In the past I have been fine tuning the Whisper-tiny ASR model using ...
<p>Hello,</p> <p>In the past I have been fine tuning the Whisper-tiny ASR model using these guides:</p> <aside class="onebox allowlistedgeneric" data-onebox-src="https://learnopencv.com/fine-tuning-whisper-on-custom-dataset/"> <header class="source"> <img src="https://us1.discourse-cdn.com/hellohellohello/origi...
<p>This error appears to stem from changes to the audio backend in the datasets library. The quickest workaround may be to install using <code>pip install datasets==3.6.0</code>. Additionally, if using version <code>4.0.0</code> or later, <strong>builder script-type datasets can no longer be used directly from the Hub<...
[HF Space not starting] Repeatedly crashes: @semmyKG]
https://discuss.huggingface.co/t/hf-space-not-starting-repeatedly-crashes-semmykg/169242
169,242
24
2025-10-17T14:59:37.863000Z
[ { "id": 243751, "name": "Researcher", "username": "semmyk", "avatar_template": "/user_avatar/discuss.huggingface.co/semmyk/{size}/46712_2.png", "created_at": "2025-10-17T14:59:37.920Z", "cooked": "<p>[HF Space repeatedly crashes: <a href=\"https://huggingface.co/spaces/semmyk/semmyKG\">semmy...
<p>[HF Space repeatedly crashes: <a href="https://huggingface.co/spaces/semmyk/semmyKG">semmyKG</a>]</p> <p>HF support team,</p> <p>May we request your kind assistance in looking into this HF space</p> <ul> <li>Hugging Face Space: semmyk/semmyKG</li> </ul> <p>We have made private and public<br> We have restarted multip...
<p>In <a href="https://huggingface.co/spaces/semmyk/semmyKG/blob/main/README.md"><code>README.md</code></a>:</p> <pre data-code-wrap="yaml"><code class="lang-yaml">app_file: app_gradio_lightrag.py </code></pre> <p>But seems <a href="https://huggingface.co/spaces/semmyk/semmyKG/blob/main/app_gradio_lightrag.py#L831">act...
Cannot load torchcodec
https://discuss.huggingface.co/t/cannot-load-torchcodec/169260
169,260
5
2025-10-19T10:22:29.688000Z
[ { "id": 243788, "name": "MAJH", "username": "aldkela", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/{size}.png", "created_at": "2025-10-19T10:22:29.743Z", "cooked": "<p>Hello, I have some problem making some program and here is the code I made below</p>\n<pre data...
<p>Hello, I have some problem making some program and here is the code I made below</p> <pre data-code-wrap="python"><code class="lang-python">%pip install --upgrade pip %pip install --upgrade transformers datasets[audio] accelerate import os os.environ["PATH"] += os.pathsep + r"C:\GPT_AGENT_2025_BOOK\chap05\ffmpeg-2...
<p>When using Python in a Windows environment, particularly with venv, conda, or Jupyter, DLL errors occasionally occur because the Windows <code>PATH</code> environment variable isn’t used to locate DLLs…</p> <hr> <p>You’re hitting a Windows DLL-loading problem for TorchCodec plus a possible version or kernel mismatch...
WARN Status Code: 500
https://discuss.huggingface.co/t/warn-status-code-500/169281
169,281
9
2025-10-20T07:24:36.364000Z
[ { "id": 243832, "name": "ロマン", "username": "concretejungles", "avatar_template": "/user_avatar/discuss.huggingface.co/concretejungles/{size}/54974_2.png", "created_at": "2025-10-20T07:24:36.419Z", "cooked": "<p>Running a simple <code>hf download Qwen/Qwen3-4B</code> in colab, I keep getting ...
<p>Running a simple <code>hf download Qwen/Qwen3-4B</code> in colab, I keep getting infinite retries with:<br> <code>WARN Status Code: 500</code></p> <p>With <code>RuntimeError: Data processing error: CAS service error : Reqwest Error: HTTP status server error (500 Internal Server Error), domain: ``https://cas-server....
<p>I solved the issue by <strong>disabling xet</strong>, like this:</p> <p><code>export HF_HUB_DISABLE_XET=1</code></p> <p>After setting this environment variable, the download worked perfectly. <img src="https://emoji.discourse-cdn.com/apple/blush.png?v=14" title=":blush:" class="emoji" alt=":blush:" loading="lazy" wi...
Hybrid Resonance Algorithm for Artificial Superintelligence
https://discuss.huggingface.co/t/hybrid-resonance-algorithm-for-artificial-superintelligence/169264
169,264
7
2025-10-19T11:19:56.732000Z
[ { "id": 243794, "name": "bit", "username": "olegbits", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/o/aeb1de/{size}.png", "created_at": "2025-10-19T11:19:56.822Z", "cooked": "<p>GRA-ASI: Hybrid Resonance Algorithm for Artificial Superintelligence**</p>\n<h3><a name=\"p-243...
<p>GRA-ASI: Hybrid Resonance Algorithm for Artificial Superintelligence**</p> <h3><a name="p-243794-h-1-core-objective-of-the-algorithm-1" class="anchor" href="#p-243794-h-1-core-objective-of-the-algorithm-1"></a><strong>1. Core Objective of the Algorithm</strong></h3> <p>The primary goal of GRA-ASI is to <strong>maxim...
<p>Certainly! Here is the <strong>full English translation</strong> of your request and the detailed response about making <strong>GHA-ASI practically useful</strong>, based strictly on the provided knowledge base.</p> <hr> <h3><a name="p-243807-original-request-translated-1" class="anchor" href="#p-243807-original-req...
Replacing attention class with identical subclass creates hallucinations
https://discuss.huggingface.co/t/replacing-attention-class-with-identical-subclass-creates-hallucinations/169215
169,215
6
2025-10-16T11:23:27.606000Z
[ { "id": 243707, "name": "Alexander Jephtha", "username": "AlexJephtha", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/{size}.png", "created_at": "2025-10-16T11:23:27.668Z", "cooked": "<p>I’m writing a custom versions of LlamaModels, and for one of those approaches ...
<p>I’m writing a custom versions of LlamaModels, and for one of those approaches I want to overwrite the attention mechanism of each layer. My code looks like this. Note that even when I define LlamaAttentionHybrid (a subclass of LlamaAttention) to be the exact same as LlamaAttention, I still get hallucination issues. ...
<p>SOLUTION: With SDPA attention, passing in an attention_mask with value not equal to none overrides the causal attention mask! You need to fill the attention mask with -inf (or large negative number) in the upper right triangle. This is only really a problem when calculating the attention scores of the initial text i...
Cannot load Conll2003
https://discuss.huggingface.co/t/cannot-load-conll2003/169142
169,142
10
2025-10-14T12:17:33.072000Z
[ { "id": 243574, "name": "Radek Štulc", "username": "stulcrad", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/{size}.png", "created_at": "2025-10-14T12:17:33.129Z", "cooked": "<p>I am trying to load conll2003 dataset the basic way I learned like this</p>\n<pre><code...
<p>I am trying to load conll2003 dataset the basic way I learned like this</p> <pre><code class="lang-auto">from datasets import load_dataset dataset = load_dataset("conll2003") </code></pre> <p>but I am running into this error</p> <pre><code class="lang-auto">-----------------------------------------------------------...
<p>Try:</p> <pre data-code-wrap="py"><code class="lang-py">from datasets import load_dataset dataset = load_dataset("lhoestq/conll2003") </code></pre> <p>This is because <a href="https://github.com/huggingface/datasets/releases/tag/4.0.0">support for <code>trust_remote_code=True</code> was removed in <code>datasets</co...
Custom Domain stuck on pending
https://discuss.huggingface.co/t/custom-domain-stuck-on-pending/168554
168,554
5
2025-09-19T20:06:23.603000Z
[ { "id": 242315, "name": "Jordan Glaus", "username": "Jordamit", "avatar_template": "/user_avatar/discuss.huggingface.co/jordamit/{size}/54073_2.png", "created_at": "2025-09-19T20:06:23.662Z", "cooked": "<p>I am trying to connect my custom domain, <code>salsaqueen.club</code>, to my Hugging F...
<p>I am trying to connect my custom domain, <code>salsaqueen.club</code>, to my Hugging Face Space. The status has been stuck in “pending” for several hours and the SSL certificate will not issue.</p> <p>I have already done the following troubleshooting:</p> <ol> <li> <p>My DNS is managed at GoDaddy.</p> </li> <li> <p>...
<p>Thank you! Megan.</p>
I don&rsquo;t get it why Llama.cpp / GGML is so much faster than PyTorch
https://discuss.huggingface.co/t/i-dont-get-it-why-llama-cpp-ggml-is-so-much-faster-than-pytorch/168708
168,708
9
2025-09-26T19:09:11.234000Z
[ { "id": 242642, "name": "Lorenzo Cesconetto", "username": "lorenzocc", "avatar_template": "/user_avatar/discuss.huggingface.co/lorenzocc/{size}/54030_2.png", "created_at": "2025-09-26T19:09:11.298Z", "cooked": "<p>PyTorch offers a Python API, but the bulk of the processing is executed by the...
<p>PyTorch offers a Python API, but the bulk of the processing is executed by the underlying C++ implementation (LibTorch).</p> <p>GGML / Llama.cpp claims to be much faster because it was written in C/C++.</p> <p>Why is that the case? I don’t think the Python binding is adding too much overhead, shouldn’t they perform ...
<p>It is not about Python. It is about an inference only stack that is laser focused on CPU and cache behavior.</p> <p>What llama dot cpp does that PyTorch usually does not on CPU</p> <ol> <li> <p>Uses very aggressive quantization like four bit and five bit GGUF with per block scales and a layout that matches the matmu...
CUDA Deadlock while training DETR
https://discuss.huggingface.co/t/cuda-deadlock-while-training-detr/168917
168,917
9
2025-10-05T11:29:15.125000Z
[ { "id": 243083, "name": "Ibrahim Dönmez", "username": "imetin", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/i/ecccb3/{size}.png", "created_at": "2025-10-05T11:29:15.184Z", "cooked": "<p>I was following the guideline for object detection in the guidelines to train DAB-DETR...
<p>I was following the guideline for object detection in the guidelines to train DAB-DETR on my custom dataset. I have controlled collate_fn function and it worked as expected. On top of that, no issues with the dataset or the inputs format were spotted. The trainer and training arguments objects get initialized perfec...
<p>That warning is the kind you can safely ignore. For example, <a href="https://huggingface.co/datasets/John6666/forum1/blob/main/colab_trainer_stall_without_message.md">if you’re storing your custom dataset on Google Drive, it seems to stall</a> because it’s too slow.</p>
WGET with Token not working
https://discuss.huggingface.co/t/wget-with-token-not-working/169024
169,024
5
2025-10-08T09:03:54.478000Z
[ { "id": 243271, "name": "Lelièvre", "username": "RenanL", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/r/8dc957/{size}.png", "created_at": "2025-10-08T09:03:54.532Z", "cooked": "<p>Dear Hughingface Team,</p>\n<p>I’m using runpod with the templates “ComfyUI - AI-Dock”.</p>\...
<p>Dear Hughingface Team,</p> <p>I’m using runpod with the templates “ComfyUI - AI-Dock”.</p> <p>In JupyterLab I want to download a login protected model, the one from black-forest-labs/FLUX.1-Krea-dev.</p> <p>wget used to work like that, I can download the model from my browser after login on my local pc.</p> <p><code...
<p>How about <code>resolve</code> instead of <code>blob</code> for now?<br> <code>wget --header="Authorization: Bearer TOKEN" "https://huggingface.co/black-forest-labs/FLUX.1-dev/resolve/main/flux1-dev.safetensors"</code></p>
How to extract actual phonetic pronunciation as text on iOS (Korean phonetic transcription)?
https://discuss.huggingface.co/t/how-to-extract-actual-phonetic-pronunciation-as-text-on-ios-korean-phonetic-transcription/169014
169,014
5
2025-10-08T05:45:07.687000Z
[ { "id": 243252, "name": "Moon Ho", "username": "moonshiro", "avatar_template": "/user_avatar/discuss.huggingface.co/moonshiro/{size}/54632_2.png", "created_at": "2025-10-08T05:45:07.760Z", "cooked": "<p>Hi everyone,</p>\n<p>I’m developing a pronunciation app for deaf users learning Korean on...
<p>Hi everyone,</p> <p>I’m developing a pronunciation app for deaf users learning Korean on <strong>iOS (Swift)</strong> and need to capture actual phonetic pronunciation as text.</p> <h2><a name="p-243252-the-problem-1" class="anchor" href="#p-243252-the-problem-1"></a>The Problem</h2> <p>In Korean, the written form d...
<p>I don’t know Swift very well, so I’ll just put <a href="https://huggingface.co/datasets/John6666/forum1/blob/main/ios_phonetic_transcription.md">the resources</a> here for now…</p>
NonMatchingSplitsSizesError
https://discuss.huggingface.co/t/nonmatchingsplitssizeserror/30033
30,033
10
2023-01-19T20:12:35.014000Z
[ { "id": 55242, "name": "Sundeep", "username": "sl02", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/ba9def/{size}.png", "created_at": "2023-01-19T20:12:35.084Z", "cooked": "<p>I created a custom script which splits the raw file into train/test split on the fly. The script...
<p>I created a custom script which splits the raw file into train/test split on the fly. The script works with the default arguments. However, when I change the <code>test_size</code> ratio which I pass via <code>load_dataset()</code>, it fails with the following error</p> <pre><code class="lang-auto">Traceback (most r...
<p><a class="mention" href="/u/sl02">@sl02</a><br> When you load your dataset locally for the first time, it creates <code>dataset_info.json</code> file under its cache folder, the file contains all these splits info (like <code>num_examples</code>, <code>num_bytes</code>, etc.). If you regenerate the dataset while the...
Best Postman Alternatives for AI API Testing in 2025
https://discuss.huggingface.co/t/best-postman-alternatives-for-ai-api-testing-in-2025/168983
168,983
5
2025-10-07T04:51:20.571000Z
[ { "id": 243192, "name": "luc dev", "username": "luc01234", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/l/9f8e36/{size}.png", "created_at": "2025-10-07T04:51:20.660Z", "cooked": "<p>As we dive deeper into 2025 with more complex AI workflows, testing APIs for model deployme...
<p>As we dive deeper into 2025 with more complex AI workflows, testing APIs for model deployments has become crucial. If you’re tired of Postman’s syncing issues or bloated interface when working with Hugging Face endpoints, you’re not alone. I’ve been exploring the best Postman alternatives optimized for AI devs like ...
<p>For now I just gathered <a href="https://huggingface.co/datasets/John6666/forum1/blob/main/postman_alternative_1.md">resources</a>…</p>
Smolagents with Azure AI Foundry OpenAI model and DefaultAzureCredential or ManagedIdentity
https://discuss.huggingface.co/t/smolagents-with-azure-ai-foundry-openai-model-and-defaultazurecredential-or-managedidentity/168997
168,997
13
2025-10-07T11:54:02.248000Z
[ { "id": 243213, "name": "Ingo Villnow", "username": "IngoTB303", "avatar_template": "/user_avatar/discuss.huggingface.co/ingotb303/{size}/28183_2.png", "created_at": "2025-10-07T11:54:02.327Z", "cooked": "<p>Hi there,</p>\n<p>currently I use <em><strong>smolagents</strong></em> with <strong>...
<p>Hi there,</p> <p>currently I use <em><strong>smolagents</strong></em> with <strong>AzureOpenAIServerModel</strong>() and an API key. Now I have to switch to Active Directory authentication with <strong>DefaultAzureCredential</strong> or <strong>ManagedIdentityCredential</strong>, but with smolagent’s <strong>AzureOp...
<p>There seem to <a href="https://huggingface.co/datasets/John6666/forum1/blob/main/smolagents_azure_not_work.md">be multiple possible causes</a>.</p>
Storage Quota Out of limit
https://discuss.huggingface.co/t/storage-quota-out-of-limit/168966
168,966
5
2025-10-06T14:01:05.839000Z
[ { "id": 243169, "name": "Amaal Anoos", "username": "amaalanoosucs", "avatar_template": "/user_avatar/discuss.huggingface.co/amaalanoosucs/{size}/54178_2.png", "created_at": "2025-10-06T14:01:05.907Z", "cooked": "<p>Hi Guys,</p>\n<p>I’m on the free plan, and I have an issue with my storage li...
<p>Hi Guys,</p> <p>I’m on the free plan, and I have an issue with my storage limit. My current usage is showing as 35.6 GB/-146.14 GB. I never subscribed to the PRO as well. So why am I having -146.14 GB?</p> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://us1.discourse-cdn.com/hellohellohello/origin...
<p>Today, I confirmed the fix in my environment. I think it’s probably fixed for others too…</p>
Error 404 when downloading the tokenizer
https://discuss.huggingface.co/t/error-404-when-downloading-the-tokenizer/168993
168,993
9
2025-10-07T08:40:03.319000Z
[ { "id": 243207, "name": "Stefano", "username": "stefra", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/{size}.png", "created_at": "2025-10-07T08:40:03.383Z", "cooked": "<p>When I try to execute the following lines of code:</p>\n<p>quantization_config = BitsAndBytes...
<p>When I try to execute the following lines of code:</p> <p>quantization_config = BitsAndBytesConfig(load_in_8bit=True)<br> tokenizer = AutoTokenizer.from_pretrained(model_id)<br> model = AutoModelForCausalLM.from_pretrained(<br> model_id,<br> device_map=“auto”,<br> quantization_config=quantization_config<br> )</p> <p...
<p>Seems <a href="https://github.com/huggingface/transformers/issues/39873">a resolved bug of Transformers</a>. Try upgrade <code>pip install -U transformers</code></p>
Auto Train with alpaca model data set
https://discuss.huggingface.co/t/auto-train-with-alpaca-model-data-set/168711
168,711
16
2025-09-26T22:09:55.785000Z
[ { "id": 242648, "name": "Yunus Emre BAYRAM", "username": "ynsbyrm", "avatar_template": "/user_avatar/discuss.huggingface.co/ynsbyrm/{size}/54307_2.png", "created_at": "2025-09-26T22:09:55.848Z", "cooked": "<p>Hi there,</p>\n<p>I’m new both on this forum and huggingface world. Please go easy ...
<p>Hi there,</p> <p>I’m new both on this forum and huggingface world. Please go easy on me <img src="https://emoji.discourse-cdn.com/apple/slight_smile.png?v=14" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"><br> I have a question to ask. I want to use auto train for fi...
<p>I don’t have any data science knowledge whatsoever, but I think we can manage if we just do some basic preprocessing in Python… Functions for data processing and shaping are usually available somewhere in the libraries.</p> <hr> <p>Use one rendered <code>text</code> column for SFT. Do not map <code>instruction/input...
All my spaces are down after rebuild
https://discuss.huggingface.co/t/all-my-spaces-are-down-after-rebuild/168915
168,915
24
2025-10-05T04:59:57.954000Z
[ { "id": 243077, "name": "Winston", "username": "winstxnhdw", "avatar_template": "/user_avatar/discuss.huggingface.co/winstxnhdw/{size}/29933_2.png", "created_at": "2025-10-05T04:59:58.011Z", "cooked": "<p>According to my logs on Grafana, they’ve been down since 2025-10-05 02:40:46 +0000</p>"...
<p>According to my logs on Grafana, they’ve been down since 2025-10-05 02:40:46 +0000</p>
<p>Did you make any changes to the Docker image? If not, <a href="https://discuss.huggingface.co/t/streamlit-docker-space-permanently-in-building-state/168910/3">this case might be similar</a>…</p>
Qwen Image, ComfyUI and Python Script
https://discuss.huggingface.co/t/qwen-image-comfyui-and-python-script/168684
168,684
5
2025-09-25T20:23:15.694000Z
[ { "id": 242583, "name": "Bo Andersen", "username": "boan-dk", "avatar_template": "/user_avatar/discuss.huggingface.co/boan-dk/{size}/54270_2.png", "created_at": "2025-09-25T20:23:15.760Z", "cooked": "<p>I am wondering what ComfyUI are doing with the models (e.g. Qwen Image). They can run on ...
<p>I am wondering what ComfyUI are doing with the models (e.g. Qwen Image). They can run on consumer hardware where the official seems to use at lot more resources.</p> <p>I have tried to use the script from <a href="https://huggingface.co/Qwen/Qwen-Image" class="inline-onebox">Qwen/Qwen-Image · Hugging Face</a> and ch...
<p>ComfyUI and Diffusers are entirely different software, so conversion isn’t really something you should consider. It’s not impossible, but most models have weights for both software available on Hugging Face, so use the weights provided there…</p> <p><a href="https://huggingface.co/datasets/John6666/forum1/blob/main/...
Help: Can’t find Multi Image Input node in ComfyUI
https://discuss.huggingface.co/t/help-can-t-find-multi-image-input-node-in-comfyui/168826
168,826
5
2025-10-01T08:10:20.352000Z
[ { "id": 242889, "name": "yaoyuan", "username": "graceyaoyuan", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/g/bbce88/{size}.png", "created_at": "2025-10-01T08:10:20.415Z", "cooked": "<p>Hi everyone,<br>\nI uploaded a workflow in ComfyUI, but it shows that a <strong>Multi I...
<p>Hi everyone,<br> I uploaded a workflow in ComfyUI, but it shows that a <strong>Multi Image Input</strong> node is missing.<br> I don’t know where to download this node or how to fix the issue.<br> Has anyone encountered this before, or can point me in the right direction? Thanks!</p> <p><div class="lightbox-wrapper"...
<p>I’m not a ComfyUI user, so I can’t be certain, but it looks like you’ll need either <a href="https://github.com/ShmuelRonen/ComfyUI_pixtral_vision">ComfyUI_pixtral_vision</a> or <a href="https://github.com/ShmuelRonen/ComfyUI_pixtral_large">ComfyUI Pixtral Large Extension</a>…?</p>
Request to reset paper authorship
https://discuss.huggingface.co/t/request-to-reset-paper-authorship/168822
168,822
5
2025-10-01T02:01:48.922000Z
[ { "id": 242881, "name": "Zixin Zhu", "username": "buxiangzhiren", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/b/97f17d/{size}.png", "created_at": "2025-10-01T02:01:48.980Z", "cooked": "<p>Hi HF team,</p>\n<p>I’m the author of the following arXiv papers (due to link limits...
<p>Hi HF team,</p> <p>I’m the author of the following arXiv papers (due to link limits, I’m listing only one here), but on my Hugging Face profile the authorship appears to be claimed by a different account (or my claim stays pending due to a conflict). Could you please help reset/transfer the claim to my main account?...
<p>The issue should be resolved now. Thanks again for reporting it.</p>
Is it possible to remove articles (the, a, an) from a text sample without consequences?
https://discuss.huggingface.co/t/is-it-possible-to-remove-articles-the-a-an-from-a-text-sample-without-consequences/168801
168,801
10
2025-09-30T09:20:23.391000Z
[ { "id": 242835, "name": "CockroachTraveler", "username": "CockroachTraveler", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/{size}.png", "created_at": "2025-09-30T09:20:23.450Z", "cooked": "<p>In my experience, these articles do not make significant sense, but they...
<p>In my experience, these articles do not make significant sense, but they take up some amount of data.<br> Actually, the crux of the question is, if they are previously removed from the text selection, will this reduce costs and will this not affect the perception of the meaning of the test by the model?</p> <p>(task...
<p>This <a href="https://huggingface.co/datasets/John6666/forum1/blob/main/removing_articles_affect_results.md">should generally be avoided as it significantly impacts output results</a>. However, it is possible to train models to omit articles, and while rare, I have seen examples. Naturally, this comes at a higher co...
KeyError: &lsquo;classifier.dense.weight&rsquo; when loading LoRA adapter with quantized Roberta classification model
https://discuss.huggingface.co/t/keyerror-classifier-dense-weight-when-loading-lora-adapter-with-quantized-roberta-classification-model/168793
168,793
5
2025-09-30T01:27:54.577000Z
[ { "id": 242812, "name": "AkiraNom", "username": "TetorisAce", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/t/74df32/{size}.png", "created_at": "2025-09-30T01:27:54.639Z", "cooked": "<p>Hi all,</p>\n<p>I fine-tuned a quantized <code>roberta-base</code> classification model ...
<p>Hi all,</p> <p>I fine-tuned a quantized <code>roberta-base</code> classification model using PEFT + LoRA. Then, training runs fine, and I save the adapter.</p> <pre data-code-wrap="python"><code class="lang-python">from datasets import load_dataset import evaluate from peft import ( LoraConfig, TaskType, ...
<p>save/load method deviating from PEFT’s design?</p> <hr> <p>Root cause: you saved submodules of the head. At load time PEFT expects the whole classification head to be in <code>modules_to_save</code>, not its internal layers. With 4-bit quantization this mismatch often surfaces as <code>KeyError: 'classifier.dense.we...
Target_size issue
https://discuss.huggingface.co/t/target-size-issue/168739
168,739
64
2025-09-28T07:02:20.649000Z
[ { "id": 242705, "name": "TSR", "username": "iam-tsr", "avatar_template": "/user_avatar/discuss.huggingface.co/iam-tsr/{size}/54346_2.png", "created_at": "2025-09-28T07:02:20.716Z", "cooked": "<p>I am using ImageToImageTargetSize paramenter with InferenceClient</p>\n<p>from huggingface_hub.in...
<p>I am using ImageToImageTargetSize paramenter with InferenceClient</p> <p>from huggingface_hub.inference._generated.types.image_to_image import ImageToImageTargetSize</p> <p>target_size=ImageToImageTargetSize(256, 256)</p> <p>But the output is still same as input image size. Can anyone help me to figure out what thi...
<p>The bug has been fixed and released in <a href="https://github.com/huggingface/huggingface_hub/releases/tag/v0.35.3" rel="noopener nofollow ugc"><code>huggingface_hub==0.35.3</code></a></p>
Permission error when starting a LableStudio space
https://discuss.huggingface.co/t/permission-error-when-starting-a-lablestudio-space/168735
168,735
5
2025-09-28T01:03:19.470000Z
[ { "id": 242700, "name": "Lin Chen you", "username": "cylin577", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/c/dbc845/{size}.png", "created_at": "2025-09-28T01:03:19.540Z", "cooked": "<p>It says</p>\n<pre><code class=\"lang-auto\">Exit code: 1. Reason: =&gt; Database and m...
<p>It says</p> <pre><code class="lang-auto">Exit code: 1. Reason: =&gt; Database and media directory: /label-studio/data =&gt; Static URL is set to: /static/ Traceback (most recent call last): File "/label-studio/.venv/bin/label-studio", line 3, in &lt;module&gt; from label_studio.server import main File "/labe...
<p><a href="https://discuss.huggingface.co/t/permissionerror-errno-13-permission-denied-cache/146951/5">The cause is attempting to write to a directory that is not writable due to permissions</a>. <a href="https://labelstud.io/guide/start">Setting the following environment variable</a> would resolve this.<br> <code>LAB...
403 error on dataset fineweb-2
https://discuss.huggingface.co/t/403-error-on-dataset-fineweb-2/168620
168,620
10
2025-09-23T21:45:26.925000Z
[ { "id": 242448, "name": "Vincent Blazutti", "username": "blazux", "avatar_template": "/user_avatar/discuss.huggingface.co/blazux/{size}/54198_2.png", "created_at": "2025-09-23T21:45:26.982Z", "cooked": "<p>Hi,</p>\n<p>I was training a small model just for fun when the error occured (after mo...
<p>Hi,</p> <p>I was training a small model just for fun when the error occured (after more 100k steps) :</p> <p>requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: <a href="https://huggingface.co/datasets/HuggingFaceFW/fineweb-2/resolve/a8a99b128121a41b17d95901715603386f6b1daf/data/fra_Latn/train/000_00...
<blockquote> <p>HTTPError: 403 Client Error: Forbidden for url</p> </blockquote> <p>When <code>streaming=True</code>, shards are fetched on-demand, so it’s not unusual for errors to occur midway through fetching. Judging from the error message, it appears to be a CDN or network error, so I don’t think it’s a code issue...
How to build a tokenizer from a vocab subset of a BPE tokenizer
https://discuss.huggingface.co/t/how-to-build-a-tokenizer-from-a-vocab-subset-of-a-bpe-tokenizer/168698
168,698
5
2025-09-26T08:13:16.730000Z
[ { "id": 242619, "name": "Sicheng Mao", "username": "alephpi", "avatar_template": "/user_avatar/discuss.huggingface.co/alephpi/{size}/54288_2.png", "created_at": "2025-09-26T08:13:16.792Z", "cooked": "<p>Hi community,</p>\n<p>I want to distill a pretrained BPE tokenizer for my domain-specific...
<p>Hi community,</p> <p>I want to distill a pretrained BPE tokenizer for my domain-specific corpus, is there anything to pay attention to?</p> <p>What I will do in my mind is use the pretrained one to first tokenize all sentences of the corpus(I already did), find out the used token and get rid of the unused ones from...
<p>Unless we change it to the WordLevel tokenizer, <a href="https://huggingface.co/datasets/John6666/forum1/blob/main/bpe_distill.md">the distillation itself seems possible without affecting the Rust-written parts</a>.</p>
Dataset Page is Crashing
https://discuss.huggingface.co/t/dataset-page-is-crashing/168659
168,659
10
2025-09-25T00:35:34.612000Z
[ { "id": 242531, "name": "Andrew Drozdov", "username": "mrdrozdov", "avatar_template": "/user_avatar/discuss.huggingface.co/mrdrozdov/{size}/2692_2.png", "created_at": "2025-09-25T00:35:34.674Z", "cooked": "<p>Not sure why this page is crashing. Maybe disable viewer for now? <a href=\"https:/...
<p>Not sure why this page is crashing. Maybe disable viewer for now? <a href="https://huggingface.co/datasets/jfkback/crumb" class="inline-onebox">jfkback/crumb · Datasets at Hugging Face</a></p>
<aside class="quote no-group" data-username="mrdrozdov" data-post="1" data-topic="168659"> <div class="title"> <div class="quote-controls"></div> <img alt="" width="24" height="24" src="https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mrdrozdov/48/2692_2.png" class="avatar"> mrdrozdov:<...
RuntimeError: Backward through graph with Whisper-medium and gradient_checkpointing=True
https://discuss.huggingface.co/t/runtimeerror-backward-through-graph-with-whisper-medium-and-gradient-checkpointing-true/168571
168,571
9
2025-09-21T22:04:06.519000Z
[ { "id": 242354, "name": "Brian", "username": "brianko", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/b/3da27b/{size}.png", "created_at": "2025-09-21T22:04:06.595Z", "cooked": "<p>I am trying to fine-tune Whisper-medium and am getting this specific error during <code>traine...
<p>I am trying to fine-tune Whisper-medium and am getting this specific error during <code>trainer.train():</code></p> <pre><code class="lang-auto">tmp/ipython-input-774985985.py:8: FutureWarning: `tokenizer` is deprecated and will be removed in version 5.0.0 for `Seq2SeqTrainer.__init__`. Use `processing_class` instea...
<p>Success!</p> <p>The significant changes I made based on your example were:</p> <pre><code class="lang-auto">gradient_checkpointing_kwargs={"use_reentrant": False}, fp16=False, fp16_full_eval=False, </code></pre> <p>and I removed the <code>model_generate = partial(…)</code> call. That resolved the issue. Thank...
Fail to push README.md updates in Hugging Face Spaces
https://discuss.huggingface.co/t/fail-to-push-readme-md-updates-in-hugging-face-spaces/37992
37,992
24
2023-04-28T06:30:45.291000Z
[ { "id": 66957, "name": "Hyoung-Kyu Song", "username": "deepkyu", "avatar_template": "/user_avatar/discuss.huggingface.co/deepkyu/{size}/19615_2.png", "created_at": "2023-04-28T06:30:45.351Z", "cooked": "<p>Hi,</p>\n<p>I tried to update a README.md file in my private Hugging Face Spaces.<br>\...
<p>Hi,</p> <p>I tried to update a README.md file in my private Hugging Face Spaces.<br> But I failed to push my commit which contains updating yaml card information with the following message:</p> <pre><code class="lang-auto">remote: ------------------------------------------------------------------------- remote: Unex...
<p>I tried it again and now it works.</p> <p>I’ll close this issue.</p>
The best model is not being saved
https://discuss.huggingface.co/t/the-best-model-is-not-being-saved/168528
168,528
5
2025-09-18T14:00:56.645000Z
[ { "id": 242243, "name": "Alex", "username": "SuperBowser", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/{size}.png", "created_at": "2025-09-18T14:00:56.730Z", "cooked": "<p>I am using custom metric and in my training arguments I have</p>\n<pre><code class=\"lang-a...
<p>I am using custom metric and in my training arguments I have</p> <pre><code class="lang-auto">greater_is_better=True, load_best_model_at_end=True, </code></pre> <p>But as far as I can the best model is not being saved. Here is link to my Colab notebook:</p> <p><a href="https://colab.research.google.com/drive/1ehTt53...
<p>Due to <a href="https://huggingface.co/datasets/John6666/forum1/blob/main/best_model_not_saved.md"><code>metric_for_best_model</code> is missing, etc.</a> ?</p>
Cannot solve &lsquo;DynamicCache&rsquo;&hellip; &lsquo;seen_tokens&rsquo; error!
https://discuss.huggingface.co/t/cannot-solve-dynamiccache-seen-tokens-error/168439
168,439
5
2025-09-15T11:16:06.513000Z
[ { "id": 242009, "name": "Zarem Nacim", "username": "vergamse", "avatar_template": "/user_avatar/discuss.huggingface.co/vergamse/{size}/53868_2.png", "created_at": "2025-09-15T11:16:06.575Z", "cooked": "<p>Hello Everyone. I am a beginner learning LLMs and got hold of Book by Jay Alammar. I am...
<p>Hello Everyone. I am a beginner learning LLMs and got hold of Book by Jay Alammar. I am trying to replicate the code in Colab, given by the author in the first chapter but I am not able to make it work. Looks like the latest version of transformers module had removed some functions and methods. It’s a simple code.</...
<p>Downgrading is fine, but if you want to run it on the latest Transformers, this method might be better. Since <strong>PHI-3 should be supported by default now</strong>, I don’t think <code>remote_code</code> is necessary for this model anymore…</p> <pre data-code-wrap="py"><code class="lang-py">model = AutoModelForC...
What’s the definiation of lazy loading? Is IterableDataset also faster than Dataset when loading locally?
https://discuss.huggingface.co/t/what-s-the-definiation-of-lazy-loading-is-iterabledataset-also-faster-than-dataset-when-loading-locally/168304
168,304
10
2025-09-11T16:46:58.488000Z
[ { "id": 241720, "name": "Zhao", "username": "Zoe0427", "avatar_template": "/user_avatar/discuss.huggingface.co/zoe0427/{size}/53729_2.png", "created_at": "2025-09-11T16:46:58.548Z", "cooked": "<p>What’s the definiation of lazy loading? Do the IterableDataset and Dataset decided whether there...
<p>What’s the definiation of lazy loading? Do the IterableDataset and Dataset decided whether there is the lazy loading? I think lazy loading is that we don’t load all the data at the same time. So only we used IterableDataset , lazy loading will happen.</p> <p>Another question comes out. Does IterableDataset use memor...
<p>I’ve never worked <a href="https://huggingface.co/datasets/John6666/forum1/blob/main/lazy_loading2.md">with huge datasets</a>…</p>
Getting started with Voxtral for ASR transcription
https://discuss.huggingface.co/t/getting-started-with-voxtral-for-asr-transcription/168281
168,281
13
2025-09-11T03:33:04.077000Z
[ { "id": 241677, "name": "Georg Heiler", "username": "geoHeil", "avatar_template": "/user_avatar/discuss.huggingface.co/geoheil/{size}/26801_2.png", "created_at": "2025-09-11T03:33:04.141Z", "cooked": "<p>I am trying to execute <a href=\"https://huggingface.co/docs/transformers/main/en/model_...
<p>I am trying to execute <a href="https://huggingface.co/docs/transformers/main/en/model_doc/voxtral#transcription-mode" class="inline-onebox">Voxtral</a> the default example for transcription of the obama speech for ASR of Voxtral.</p> <h1><a name="p-241677-generated-responses-1" class="anchor" href="#p-241677-genera...
<p>I think this is a bfloat 16 mixup with MPS</p> <pre><code class="lang-auto">import torch from transformers import VoxtralForConditionalGeneration, AutoProcessor device = "mps" if torch.backends.mps.is_available() else "cpu" repo_id = "mistralai/Voxtral-Mini-3B-2507" audio_url = "https://huggingface.co/datasets/hf-i...
Getting the Space name programmatically
https://discuss.huggingface.co/t/getting-the-space-name-programmatically/168253
168,253
24
2025-09-10T09:20:15.719000Z
[ { "id": 241610, "name": "João Ricardo Silva", "username": "jrsilva", "avatar_template": "/user_avatar/discuss.huggingface.co/jrsilva/{size}/53168_2.png", "created_at": "2025-09-10T09:20:15.781Z", "cooked": "<p>Is there a programmatic way of a Space knowing its own name?</p>\n<p>For instance,...
<p>Is there a programmatic way of a Space knowing its own name?</p> <p>For instance, the restart_space method of the huggingface_hub API requires a repo_id. If, say, I want the Space to restart itself, is there a programmatic way of getting this repo_id (and thus working without requiring changes if the Space is ever r...
<p>Maybe <a href="https://huggingface.co/docs/hub/en/spaces-overview#helper-environment-variables">simply by this</a>?</p> <pre data-code-wrap="py"><code class="lang-py">import os space_id = os.getenv("SPACE_ID", "") # e.g. "username/space-name" </code></pre>
Layoutlmv3 word_labels does not match original labels from dataset
https://discuss.huggingface.co/t/layoutlmv3-word-labels-does-not-match-original-labels-from-dataset/168230
168,230
9
2025-09-09T09:43:15.335000Z
[ { "id": 241536, "name": "Tomáš", "username": "TomasFAV", "avatar_template": "/user_avatar/discuss.huggingface.co/tomasfav/{size}/53485_2.png", "created_at": "2025-09-09T09:43:15.399Z", "cooked": "<p>Hi I´m new here and new to transformers. I´m develloping app for information extraction from ...
<p>Hi I´m new here and new to transformers. I´m develloping app for information extraction from invoices using layoutlmv3 and I came to a problem. When I use layoutlmv3 processor to encode words from invoice and I pass the word_labels. The labels from the processor does not match the original dataset labels(before nor ...
<p>Thank you for your answer, but I just few minutes back resolved my problem. Unfortunetly it was not caused by what you suggests. The problem was that the layoutlmv3 for some reason does not work well with dialects and I have my invoices in Czech, so it for example from word Plnění created three separate tokens: Pln ...
Image to text using blip2 gives incorrect answer
https://discuss.huggingface.co/t/image-to-text-using-blip2-gives-incorrect-answer/168177
168,177
5
2025-09-07T15:31:05.250000Z
[ { "id": 241418, "name": "Raman Shah", "username": "rxshah", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/r/a587f6/{size}.png", "created_at": "2025-09-07T15:31:05.323Z", "cooked": "<p>Here is code snippet slightly modified from blip2 site:</p>\n<p>first prompt “Question: H...
<p>Here is code snippet slightly modified from blip2 site:</p> <p>first prompt “Question: How many cats are there? Answer:” –&gt; gives correct answer Two</p> <p>However, second prompt “Question: How many dogs are there? Answer:” –&gt; gives incorrect answer - Two should be Zero or None.</p> <p>Is this because the ac...
<p>Yeah. For example, CLIP can perfectly classify dogs and cats, but <a href="https://huggingface.co/datasets/John6666/forum1/blob/main/blip2_cats_dogs.md">BLIP seems utterly unsuitable for classification</a>…</p>
Prevent creation of multiple checkpoints
https://discuss.huggingface.co/t/prevent-creation-of-multiple-checkpoints/168144
168,144
5
2025-09-05T20:15:07.934000Z
[ { "id": 241309, "name": "Alex", "username": "SuperBowser", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/{size}.png", "created_at": "2025-09-05T20:15:08.005Z", "cooked": "<p>In my training arguments I selected to save every 200 steps, but my model is fairly large (...
<p>In my training arguments I selected to save every 200 steps, but my model is fairly large (relative to my disk size). I would like to save every 200 steps, but every save should just overwrite previous save instead of creating new save point. Is this possible?</p>
<p>Strictly speaking, it’s not overwriting, but I think<a href="https://huggingface.co/docs/transformers/en/main_classes/trainer#transformers.TrainingArguments.save_total_limit"> <code>save_total_limit</code> or <code>save_only_model</code></a> are closer to the intended purpose.</p> <pre data-code-wrap="py"><code clas...
Low Budge Worstation
https://discuss.huggingface.co/t/low-budge-worstation/168164
168,164
5
2025-09-06T14:25:48.742000Z
[ { "id": 241355, "name": "Nick Dandolos", "username": "b0llull0s", "avatar_template": "/user_avatar/discuss.huggingface.co/b0llull0s/{size}/53532_2.png", "created_at": "2025-09-06T14:25:48.814Z", "cooked": "<p>Hi there,</p>\n<p>I want to setup a LLM workstation to start developing my own agen...
<p>Hi there,</p> <p>I want to setup a LLM workstation to start developing my own agent and tools and experiment. I travel a lot and don’t have a big budget at the moment to expend.</p> <p>I saw the Nvidia Jetson Nano Orin Super and it looks cool but I’m not sure if is the best option for my needs.<br> I use Linux and l...
<p>For hardware consultations or fine-tuning, I think it’s best to ask questions on the HF Discord or Unsloth’s Discord.</p> <blockquote> <p>Nvidia Jetson Nano Orin Super and it looks cool but I’m not sure if is the best option for my needs.</p> </blockquote> <p>It’s cool but not well-suited for various tasks with LLM....
IndexError: Target N is out of bounds within trainer.train() function
https://discuss.huggingface.co/t/indexerror-target-n-is-out-of-bounds-within-trainer-train-function/168143
168,143
5
2025-09-05T19:13:46.123000Z
[ { "id": 241307, "name": "Javier M.A.", "username": "JavierMA", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/{size}.png", "created_at": "2025-09-05T19:13:46.184Z", "cooked": "<p>Hi all,</p>\n<p>I am trying to train a custom model for NLP sequence classification (mu...
<p>Hi all,</p> <p>I am trying to train a custom model for NLP sequence classification (multiclass) and struggling to be able to train it for a reason I don’t know, that is the reason why I am asking on this forum. I already had a look at similar posts on the forum with no luck.</p> <p>First of all, my dataset looks lik...
<p>In that case, the actual weigh probably won’t change t even if the attribute is modified.</p> <pre data-code-wrap="py"><code class="lang-py">from transformers import AutoModelForSequenceClassification, AutoTokenizer import torch # 1) Load a small model with 2 labels so the classifier head is tiny model = AutoModel...
Openai/gpt-oss-20b what heads are available
https://discuss.huggingface.co/t/openai-gpt-oss-20b-what-heads-are-available/167904
167,904
5
2025-08-29T14:58:19.647000Z
[ { "id": 240629, "name": "Alex", "username": "SuperBowser", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/{size}.png", "created_at": "2025-08-29T14:58:19.707Z", "cooked": "<p>The following code produces error:</p>\n<pre><code class=\"lang-auto\">from transformers im...
<p>The following code produces error:</p> <pre><code class="lang-auto">from transformers import AutoModelForSequenceClassification model_name = ‘openai/gpt-oss-20b’ model = AutoModelForSequenceClassification.from_pretrained(model_name) </code></pre> <p>Error:</p> <pre><code class="lang-auto">ValueError: Unrecognized c...
<p>Hmm, I might have forgotten to download <code>build</code>. I don’t know Kaggle…</p> <pre data-code-wrap="bash"><code class="lang-bash"># Online # Build a wheel from GitHub (avoid sdists) git clone https://github.com/huggingface/transformers cd transformers python -m pip install -U build python -m build --wheel -o ....
Adding Metadata to a dataset
https://discuss.huggingface.co/t/adding-metadata-to-a-dataset/165626
165,626
5
2025-08-04T17:21:08.096000Z
[ { "id": 236538, "name": "Daniel Russ", "username": "danielruss", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/d/bbce88/{size}.png", "created_at": "2025-08-04T17:21:08.153Z", "cooked": "<p>Hi, I have a dataset where the text has a label that is a standardized code. The eac...
<p>Hi, I have a dataset where the text has a label that is a standardized code. The each code has a title describing the code. The data is in a pandas df called jobs_data</p> <pre><code class="lang-auto">data = { "text": jobs_data.JobTitle.to_list(), "label": jobs_data.soc2010.to_list(), } features = { ...
<p>If metadata alone is sufficient, using <a href="https://huggingface.co/docs/datasets/v4.0.0/en/package_reference/main_classes#datasets.DatasetInfo">the <code>DatasetInfo</code> class</a> is probably the quickest option.</p> <pre data-code-wrap="py"><code class="lang-py">from datasets import DatasetInfo data = { ...
Error Importing Seq2SeqTrainer
https://discuss.huggingface.co/t/error-importing-seq2seqtrainer/168082
168,082
9
2025-09-03T17:53:23.564000Z
[ { "id": 241117, "name": "Dawson", "username": "dholt123", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/d/f6c823/{size}.png", "created_at": "2025-09-03T17:53:23.637Z", "cooked": "<p>I’m new to using transformers so any help would be appreciated. I keep getting this error w...
<p>I’m new to using transformers so any help would be appreciated. I keep getting this error when I attempting to import Seq2Seq2Trainer and Seq2Seq2TrainingArguments:</p> <p>ImportError: cannot import name ‘TFPreTrainedModel’ from ‘transformers’</p> <p>I’m not sure what to do to resolve this, I’ve already checked to ...
<p>I was able to figure out the issue. It was caused by having both TensorFlow and pyTorch installed. When both are installed, Integration_utils.py first checks to see if TensorFlow is available first and the attempts to import TFPreTrainedModel this is where the error was occurring.</p>
Batch generation Llama 3 Instruct | Tokenizer has no padding token
https://discuss.huggingface.co/t/batch-generation-llama-3-instruct-tokenizer-has-no-padding-token/168043
168,043
9
2025-09-02T20:07:06.418000Z
[ { "id": 241024, "name": "Samir Char", "username": "samirchar", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/{size}.png", "created_at": "2025-09-02T20:07:06.509Z", "cooked": "<p>Hello everyone,</p>\n<p>What is the best way of using a model like Llama 3.1 ( <a href=...
<p>Hello everyone,</p> <p>What is the best way of using a model like Llama 3.1 ( <a href="https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct" class="inline-onebox">meta-llama/Llama-3.1-8B-Instruct · Hugging Face</a> ) with AutoModel, AutoTokenizer, and template chat (I can’t use pipelines for my use case) <stro...
<p>I think that’s correct. If anything else to add, maybe <code>return_dict=True</code> or something.</p> <pre data-code-wrap="py"><code class="lang-py">from transformers import AutoModelForCausalLM, AutoTokenizer import torch model_id = "meta-llama/Llama-3.1-8B-Instruct" tokenizer = AutoTokenizer.from_pretrained(mod...
Change metadata of parquet files
https://discuss.huggingface.co/t/change-metadata-of-parquet-files/166127
166,127
10
2025-08-08T14:17:33.573000Z
[ { "id": 237356, "name": "Alice Mabille", "username": "maliced", "avatar_template": "/user_avatar/discuss.huggingface.co/maliced/{size}/52545_2.png", "created_at": "2025-08-08T14:17:33.634Z", "cooked": "<p>I preprocessed and uploaded the entirety of the gilkeyio/librispeech-alignments dataset...
<p>I preprocessed and uploaded the entirety of the gilkeyio/librispeech-alignments dataset, which is huge. However, I set the wrong <code>dataset._info.features</code> for one column. Now, the <code>key_value_metadata.0.value</code>of every parquet file in my dataset has <code>"feats": {"shape": [null, 80], "dtype": "f...
<p>I think you have to reprocess the data unfortunately</p>
Can I use LoRA with jhu-clsp/ettin-encoder-1b?
https://discuss.huggingface.co/t/can-i-use-lora-with-jhu-clsp-ettin-encoder-1b/167903
167,903
5
2025-08-29T14:49:48.934000Z
[ { "id": 240628, "name": "Alex", "username": "SuperBowser", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/{size}.png", "created_at": "2025-08-29T14:49:49.002Z", "cooked": "<p>It looks like <code>jhu-clsp/ettin-encoder-1b</code> does not have any <code>proj</code> la...
<p>It looks like <code>jhu-clsp/ettin-encoder-1b</code> does not have any <code>proj</code> layers. Is it possible to use LoRA with this model:</p> <pre><code class="lang-auto">from transformers import AutoModelForSequenceClassification model_name = ‘jhu-clsp/ettin-encoder-1b’ model = AutoModelForSequenceClassification...
<p>It seems that <a href="https://huggingface.co/Wb-az/modernbert-lora-adapter-for-emotion-classification/blob/main/adapter_config.json">for ModernBERT-based models, the <code>target_modules</code> names aren’t <code>proj*</code></a>. You can apparently also <a href="https://huggingface.co/docs/peft/v0.17.0/developer_g...
Could not find MistralForCausalLM in transformers
https://discuss.huggingface.co/t/could-not-find-mistralforcausallm-in-transformers/167978
167,978
5
2025-09-01T02:12:05.710000Z
[ { "id": 240814, "name": "Jay", "username": "jaydeepb", "avatar_template": "/user_avatar/discuss.huggingface.co/jaydeepb/{size}/14906_2.png", "created_at": "2025-09-01T02:12:05.764Z", "cooked": "<p>Hi. I finetuned <code>mistralai/Mistral-Small-24B-Base-2501</code> on a dataset and now I’m try...
<p>Hi. I finetuned <code>mistralai/Mistral-Small-24B-Base-2501</code> on a dataset and now I’m trying to run inference for it. I’m using <code>AutoModelForCausalLM.from_pretrained</code> to load it but getting this error: <code>Could not find MistralForCausalLM neither in transformers</code>. I’m running the latest ver...
<p>Judging just by the error, it’s probably <a href="https://github.com/timeseriesAI/tsai/issues/919">a version mismatch between <code>torch</code> and <code>torchvision</code></a>.</p> <pre data-code-wrap="bash"><code class="lang-bash">pip install torchvision==x.xx.x </code></pre> <h3><a name="p-240826-domain-version-...
Broken Space After Debian13 Update And llama-cpp-python Update
https://discuss.huggingface.co/t/broken-space-after-debian13-update-and-llama-cpp-python-update/167908
167,908
24
2025-08-29T17:28:00.047000Z
[ { "id": 240637, "name": "MisterAI", "username": "MisterAI", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/m/46a35a/{size}.png", "created_at": "2025-08-29T17:28:00.115Z", "cooked": "<p>Hi,</p>\n<p>Some of my Gradio spaces that were working previously are no longer functionin...
<p>Hi,</p> <p>Some of my Gradio spaces that were working previously are no longer functioning. The first issue seems to be related to the Debian 13 update: my Gradio spaces were likely initially deployed with Debian 12.</p> <p>After trying the workaround suggested by <strong>john6666</strong>, one of my older spaces re...
<blockquote> <p>1 / 2</p> </blockquote> <p>You can specify <a href="https://huggingface.co/docs/hub/spaces-config-reference">Python versions</a> and the <a href="https://huggingface.co/docs/hub/spaces-dependencies"><em>additional</em> packages to install</a>. However, everything else must be done manually… Also, the OS...
Which data parallel does trainer use? DP or DDP?
https://discuss.huggingface.co/t/which-data-parallel-does-trainer-use-dp-or-ddp/16021
16,021
9
2022-03-24T06:03:27.073000Z
[ { "id": 33067, "name": "dr_xiami", "username": "xiami", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/x/dc4da7/{size}.png", "created_at": "2022-03-24T06:03:27.154Z", "cooked": "<p>I try to search in the doc. But I didn’t find the answer anywhere.</p>\n<p>Thank you</p>", ...
<p>I try to search in the doc. But I didn’t find the answer anywhere.</p> <p>Thank you</p>
<p>It depends if you launch your training script with <code>python</code> (in which case it will use DP) or <code>python -m torch.distributed.launch</code> (in which case it will use DDP).</p>
Speed issues using tokenizer.train_new_from_iterator on ~50GB dataset
https://discuss.huggingface.co/t/speed-issues-using-tokenizer-train-new-from-iterator-on-50gb-dataset/29125
29,125
9
2023-01-07T18:46:06.927000Z
[ { "id": 54019, "name": "Gabriel Altay", "username": "gabrielaltay", "avatar_template": "/user_avatar/discuss.huggingface.co/gabrielaltay/{size}/24147_2.png", "created_at": "2023-01-07T18:46:07.013Z", "cooked": "<p>Hello, I wasn’t sure if I should use the category transformers, datasets, or t...
<p>Hello, I wasn’t sure if I should use the category transformers, datasets, or tokenizers for this, but wanted to post some benchmark times for training a GPT style tokenizer on a 10s of GB text dataset because they seem slower than my expectation (which could be totally off). The pre-processing sequences step took ~ ...
<p>Problem Solved! (thanks to <a class="mention" href="/u/lhoestq">@lhoestq</a>)</p> <p>Turns out the slow iteration speed was b/c of all the extra columns in the dataset besides the “text” column. Running with just the text column in the dataset gave 40x speedup ,</p> <pre><code class="lang-auto">old 700it [02:10, 5....
Gradient Overflow issue while using deepspeed
https://discuss.huggingface.co/t/gradient-overflow-issue-while-using-deepspeed/167833
167,833
5
2025-08-28T00:39:29.361000Z
[ { "id": 240473, "name": "Jay", "username": "jaydeepb", "avatar_template": "/user_avatar/discuss.huggingface.co/jaydeepb/{size}/14906_2.png", "created_at": "2025-08-28T00:39:29.422Z", "cooked": "<p>Hi. I’m trying to fine-tune <code>mistralai/Mistral-Small-24B-Base-2501</code> using deepspeed ...
<p>Hi. I’m trying to fine-tune <code>mistralai/Mistral-Small-24B-Base-2501</code> using deepspeed and consistently getting the overflow error. When I use <code>bf16</code> and <code>fp32,</code>I don’t see the overflow issue but the training loss is Nan. When I switch to <code>fp16</code> the training loss is correct b...
<p>If the GPU supports bfloat16, it’s probably better to use bfloat16. Regarding <code>NaN</code> issues, SDPA seems to be the culprit in many cases. Try <code>attn_implementation="eager"</code>.</p> <ul> <li><a href="https://github.com/pytorch/pytorch/issues/139298">CUDNN sdp attention causes loss explosion #139298</a...
Bert2bert translator?
https://discuss.huggingface.co/t/bert2bert-translator/167108
167,108
9
2025-08-17T22:57:32.323000Z
[ { "id": 239015, "name": "jean clary", "username": "jc-31", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/{size}.png", "created_at": "2025-08-17T22:57:32.379Z", "cooked": "<p>Hello,</p>\n<p>I am trying to put my hands on transformers (this is my first project with ...
<p>Hello,</p> <p>I am trying to put my hands on transformers (this is my first project with transformers). I decided to do a bert2bert translator, as it one of those tested in the following paper <a href="https://arxiv.org/pdf/1907.12461" rel="noopener nofollow ugc">https://arxiv.org/pdf/1907.12461</a></p> <p>I put m...
<p>The above solution is <a href="https://stackoverflow.com/questions/75839825/how-to-prevent-transformer-generate-function-to-produce-certain-words">just to suppress PAD tokens</a>…<br> When actually implementing this, you will <a href="https://discuss.huggingface.co/t/bert2bert-translation-task/22046">need to perform...
Setting max_length does not limit length of output
https://discuss.huggingface.co/t/setting-max-length-does-not-limit-length-of-output/167794
167,794
20
2025-08-27T00:53:51.090000Z
[ { "id": 240359, "name": "Travis Lelle", "username": "info5ec", "avatar_template": "/user_avatar/discuss.huggingface.co/info5ec/{size}/53106_2.png", "created_at": "2025-08-27T00:53:51.147Z", "cooked": "<pre><code class=\"lang-auto\">&gt;&gt;&gt; generator = pipeline(\"text-generation\", model...
<pre><code class="lang-auto">&gt;&gt;&gt; generator = pipeline("text-generation", model="HuggingFaceTB/SmolLM2-360M") config.json: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████...
<p>With the current Transformers library code, <a href="https://huggingface.co/docs/transformers/en/main_classes/text_generation#transformers.GenerationConfig.max_length"><code>max_new_tokens</code> takes precedence over <code>max_length</code></a>, so specifying <code>max_new_tokens</code> is the simplest approach.</p...
ImportError: cannot import name &lsquo;PreTrainedModel&rsquo; from &lsquo;transformers&rsquo;
https://discuss.huggingface.co/t/importerror-cannot-import-name-pretrainedmodel-from-transformers/167797
167,797
5
2025-08-27T02:21:03.178000Z
[ { "id": 240363, "name": "Jay", "username": "jaydeepb", "avatar_template": "/user_avatar/discuss.huggingface.co/jaydeepb/{size}/14906_2.png", "created_at": "2025-08-27T02:21:03.231Z", "cooked": "<p>Hi. This looks like an issue from peft side. I’m working with <code>mistralai/Mistral-Small-24B...
<p>Hi. This looks like an issue from peft side. I’m working with <code>mistralai/Mistral-Small-24B-Base-2501</code> model and trying to fine-tune it. But it throws <code>ImportError: cannot import name ‘PreTrainedModel’ from ‘transformers’</code>. My versions are transformers 4.55.4, tokenizers 0.21.4, peft 0.17.1. Is ...
<p>Managed to solve this by using tokenizers-0.20.1 transformers-4.45.2 (<a href="https://stackoverflow.com/a/79076471" class="inline-onebox" rel="noopener nofollow ugc">json - Tokenizer.from_file() HUGGINFACE : Exception: data did not match any variant of untagged enum ModelWrapper - Stack Overflow</a>)</p>
Cannot import name &lsquo;_resolve_process_group&rsquo; from &lsquo;torch.distributed.distributed_c10d&rsquo;
https://discuss.huggingface.co/t/cannot-import-name-resolve-process-group-from-torch-distributed-distributed-c10d/167762
167,762
9
2025-08-25T19:56:34.430000Z
[ { "id": 240239, "name": "Elizabeth Wainwright", "username": "ewainwright", "avatar_template": "/user_avatar/discuss.huggingface.co/ewainwright/{size}/53052_2.png", "created_at": "2025-08-25T19:56:34.479Z", "cooked": "<p>I got the following error when calling the HuggingFaceLLM class:</p>\n<...
<p>I got the following error when calling the HuggingFaceLLM class:</p> <pre><code class="lang-auto">Failed to import transformers.generation.utils because of the following error (look up to see its traceback): cannot import name '_resolve_process_group' from 'torch.distributed.distributed_c10d' </code></pre> <p>I loo...
<p><a href="https://forums.developer.nvidia.com/t/pytorch-2-0-0-nv23-05/273736">This error seems to occur when PyTorch is far older than Transformers</a>. It should be OK with PyTorch 2.4 or later.</p> <pre data-code-wrap="py"><code class="lang-py">import torch, torch.distributed as dist print(torch.__version__, 'dist?...
Private Space authentication for external API calls
https://discuss.huggingface.co/t/private-space-authentication-for-external-api-calls/167772
167,772
24
2025-08-26T08:43:45.781000Z
[ { "id": 240276, "name": "Mohamed Nasr", "username": "nasr7322", "avatar_template": "/user_avatar/discuss.huggingface.co/nasr7322/{size}/53080_2.png", "created_at": "2025-08-26T08:43:45.839Z", "cooked": "<p>Hello everyone!<br>\nI’m using a Docker <img src=\"https://emoji.discourse-cdn.com/app...
<p>Hello everyone!<br> I’m using a Docker <img src="https://emoji.discourse-cdn.com/apple/hugs.png?v=14" title=":hugs:" class="emoji" alt=":hugs:" loading="lazy" width="20" height="20"> Space to deploy my FastAPI application that uses multiple models, but I’ve set it to private since my project contains sensitive code....
<p>If the space is functioning properly, you should be able to access it like following.<br> You can figure out the actual space URL yourself, also <a href="https://huggingface.co/docs/hub/en/spaces-embed">you can also find it using the GUI</a>.</p> <pre data-code-wrap="bash"><code class="lang-bash">curl -X POST https:...
Vet/vetgpt-2-7b n8n connection
https://discuss.huggingface.co/t/vet-vetgpt-2-7b-n8n-connection/167187
167,187
5
2025-08-18T16:40:15.956000Z
[ { "id": 239110, "name": "Cristiane Sousa", "username": "ketask", "avatar_template": "/user_avatar/discuss.huggingface.co/ketask/{size}/52727_2.png", "created_at": "2025-08-18T16:40:16.017Z", "cooked": "<p>Hi! I’m trying to connect HF model at N8N, but I receive error: “NodeOperationError: An...
<p>Hi! I’m trying to connect HF model at N8N, but I receive error: “NodeOperationError: An error occurred while fetching the blob”. Is it due to I’m not using HF Pro plan?</p> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://us1.discourse-cdn.com/hellohellohello/original/3X/5/9/59fb79169fde184c76f553f...
<p><a href="https://huggingface.co/ArcanaBT/vetgpt-2-7b">That model location may be incorrect</a>. Also, <a href="https://huggingface.co/models?inference_provider=all&amp;sort=trending&amp;search=vetgpt">that model is not currently deployed</a>, so it should not be available via the API.</p>
Chat Templates for BlenderBot
https://discuss.huggingface.co/t/chat-templates-for-blenderbot/58184
58,184
9
2023-10-11T14:56:57.572000Z
[ { "id": 93934, "name": "Rich Bergmann", "username": "bogolese", "avatar_template": "/user_avatar/discuss.huggingface.co/bogolese/{size}/53040_2.png", "created_at": "2023-10-11T14:56:57.642Z", "cooked": "<p>I have installed transformers==4.34.0, tokenizers=0.14.1, and huggingface_hub=0.18.0 o...
<p>I have installed transformers==4.34.0, tokenizers=0.14.1, and huggingface_hub=0.18.0 on Ubuntu 20 and I am trying to run the bog standard sample chat templates code from <a href="https://huggingface.co/docs/transformers/main/en/chat_templating" class="inline-onebox">Templates for Chat Models</a> under PyCharm. The ...
<p>Opened an issue here: <a href="https://github.com/huggingface/transformers/issues/33246" class="inline-onebox">ValueError: Cannot use apply_chat_template() because tokenizer.chat_template is not set · Issue #33246 · huggingface/transformers · GitHub</a></p>
HTTP Error 429 while running MMLU
https://discuss.huggingface.co/t/http-error-429-while-running-mmlu/167647
167,647
5
2025-08-22T22:33:23.322000Z
[ { "id": 239977, "name": "Jay", "username": "jaydeepb", "avatar_template": "/user_avatar/discuss.huggingface.co/jaydeepb/{size}/14906_2.png", "created_at": "2025-08-22T22:33:23.379Z", "cooked": "<p>Hi there. I’m trying to use the MMLU benchmark available at <a href=\"https://huggingface.co/da...
<p>Hi there. I’m trying to use the MMLU benchmark available at <a href="https://huggingface.co/datasets/cais/mmlu" class="inline-onebox">cais/mmlu · Datasets at Hugging Face</a> . I have been trying to use it but running into <code>HTTP Error 429 thrown while requesting HEAD ``https://huggingface.co/datasets/cais/mmlu/...
<p>When error 429 occurs, it <a href="https://discuss.huggingface.co/t/how-does-the-hub-handles-http-error-429/147346/3">may be caused by IPv6</a>, <a href="https://github.com/huggingface/datasets/issues/7344#issuecomment-2582422510">an outdated implementation of the old datasets library</a>, or <a href="https://github...
Is prometheus-eval not available on HuggingFace Spaces?
https://discuss.huggingface.co/t/is-prometheus-eval-not-available-on-huggingface-spaces/167309
167,309
5
2025-08-19T18:24:25.866000Z
[ { "id": 239319, "name": "Hugo Torres", "username": "HugoFTorres", "avatar_template": "/user_avatar/discuss.huggingface.co/hugoftorres/{size}/52535_2.png", "created_at": "2025-08-19T18:24:25.958Z", "cooked": "<p>I am trying to use this library to evaluate my model, but whenever I add it to th...
<p>I am trying to use this library to evaluate my model, but whenever I add it to the requirements ile, I get a Build Error with the message:</p> <p>ERROR: Could not find a version that satisfies the requirement prometheus-eval (from versions: none) ERROR: No matching distribution found for prometheus-eval</p> <p>Is th...
<p>It seems that Python version <code>3.10</code> to <code>3.12</code> is required for installation of <a href="https://github.com/prometheus-eval/prometheus-eval"><code>prometheus-eval</code></a>.</p>
I keep getting [Errno 13] Permission denied: &lsquo;/.streamlit&rsquo;
https://discuss.huggingface.co/t/i-keep-getting-errno-13-permission-denied-streamlit/166664
166,664
24
2025-08-13T09:54:30.191000Z
[ { "id": 238279, "name": "Hugo Torres", "username": "HugoFTorres", "avatar_template": "/user_avatar/discuss.huggingface.co/hugoftorres/{size}/52535_2.png", "created_at": "2025-08-13T09:54:30.243Z", "cooked": "<p>Hello! I am fairly new to HuggingFace Spaces and I am trying to run an applicatio...
<p>Hello! I am fairly new to HuggingFace Spaces and I am trying to run an application, but keep getting the error [Errno 13] Permission denied: ‘/.streamlit’ . I have searched other topics and currently, even after setting HOME to /tmp/ or /data/. I have also added ENV PYTHONUNBUFFERED=1 \ PORT=8000 \ HF_HOME=/home/us...
<blockquote> <p>Should they be changed or is this something that should compliment what it already there?</p> </blockquote> <p>Yeah. It <a href="https://huggingface.co/docs/hub/en/spaces-sdks-docker-first-demo#create-the-dockerfile">seems to work fine that way</a>.</p>
Space currently stuck on building
https://discuss.huggingface.co/t/space-currently-stuck-on-building/167637
167,637
5
2025-08-22T15:36:30.234000Z
[ { "id": 239953, "name": "Hugo Torres", "username": "HugoFTorres", "avatar_template": "/user_avatar/discuss.huggingface.co/hugoftorres/{size}/52535_2.png", "created_at": "2025-08-22T15:36:30.317Z", "cooked": "<p>Hello! My space is currently stuck at building after a couple of changes. It does...
<p>Hello! My space is currently stuck at building after a couple of changes. It doesn’t even produc any logs. I have seen older topics in which the same was pointed out but it was a HuggingFace issue. Is there any way I can validate if it is s Spaces issue or an issue of my specific space?</p>
<p>There is no official way to confirm <a href="https://discuss.huggingface.co/t/space-stuck-at-preparing-forever-no-logs-reset-doesn-t-work/167424">whether this issue</a> or not…<br> As a workaround, try creating a new space and uploading the same source code to see if it works.</p>
Text-Classification Pipeline - Newbie question
https://discuss.huggingface.co/t/text-classification-pipeline-newbie-question/167640
167,640
5
2025-08-22T19:06:44.140000Z
[ { "id": 239963, "name": "Markus Eicher", "username": "MarkusEicher", "avatar_template": "/user_avatar/discuss.huggingface.co/markuseicher/{size}/52883_2.png", "created_at": "2025-08-22T19:06:44.198Z", "cooked": "<p>Hello huggingface community. I am wondering if I did understand the pipeline ...
<p>Hello huggingface community. I am wondering if I did understand the pipeline text-classification correctly. Is it the case, that the model I choose defines the task I can do with it and the output I will get? I was a bit confused, because I used pipeline(“sentiment-analysis”) but did not find “sentiment-analysis” as...
<p>Hi Markus,</p> <p><code>“sentiment-analysis”</code> is the task specifying what you want a large language model to perform on the text. Sentiment analysis practically changes the model’s head to a classifier, which you can see here:</p> <aside class="onebox githubblob" data-onebox-src="https://github.com/huggingface...
ImportError: cannot import name &lsquo;ModelFilter&rsquo; from &lsquo;huggingface_hub&rsquo;
https://discuss.huggingface.co/t/importerror-cannot-import-name-modelfilter-from-huggingface-hub/167632
167,632
5
2025-08-22T13:18:09.224000Z
[ { "id": 239912, "name": "Alex", "username": "SuperBowser", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/{size}.png", "created_at": "2025-08-22T13:18:09.284Z", "cooked": "<p>I am running this line in Kaggle notebook:</p>\n<pre data-code-wrap=\"python\"><code class=...
<p>I am running this line in Kaggle notebook:</p> <pre data-code-wrap="python"><code class="lang-python">from huggingface_hub import ModelFilter </code></pre> <p>and getting back error:</p> <pre data-code-wrap="python"><code class="lang-python">---------------------------------------------------------------------------...
<p><code>ModelFilter</code> is deprecated, please see here: <a href="https://github.com/huggingface/huggingface_hub/issues/2478" class="inline-onebox" rel="noopener nofollow ugc">ImportError: cannot import name 'ModelFilter' from 'huggingface_hub' · Issue #2478 · huggingface/huggingface_hub · GitHub</a></p>
Missing dataset card - Reddit-TIFU dataset
https://discuss.huggingface.co/t/missing-dataset-card-reddit-tifu-dataset/167436
167,436
10
2025-08-20T14:59:44.280000Z
[ { "id": 239509, "name": "Anna Kougioumtzidou", "username": "Anna-Kay", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/a/97f17d/{size}.png", "created_at": "2025-08-20T14:59:44.344Z", "cooked": "<p>I am able to download the Reddit-TIFU dataset,</p>\n<blockquote>\n<p><code>redd...
<p>I am able to download the Reddit-TIFU dataset,</p> <blockquote> <p><code>reddit_tifu = load_dataset('reddit_tifu', 'long', split='train', trust_remote_code=True)</code></p> </blockquote> <p>I have also used the dataset in the past and was able to access its dataset card (<a href="https://huggingface.co/reddit_tifu/d...
<p>Oh, sorry, <a href="https://huggingface.co/datasets/ctr4si/reddit_tifu">I just found it</a> now.<img src="https://emoji.discourse-cdn.com/apple/sweat_smile.png?v=14" title=":sweat_smile:" class="emoji" alt=":sweat_smile:" loading="lazy" width="20" height="20"></p>
RL Course Unit 1: &ldquo;python setup.py egg_info did not run successfully&rdquo;
https://discuss.huggingface.co/t/rl-course-unit-1-python-setup-py-egg-info-did-not-run-successfully/167429
167,429
5
2025-08-20T14:05:25.421000Z
[ { "id": 239482, "name": "Pearl Yu", "username": "codexistent", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/{size}.png", "created_at": "2025-08-20T14:05:25.487Z", "cooked": "<p>Hi, I’m trying to run the second setup line for the RL Course, Unit 1:</p>\n<pre><code ...
<p>Hi, I’m trying to run the second setup line for the RL Course, Unit 1:</p> <pre><code class="lang-auto">pip install -r https://raw.githubusercontent.com/huggingface/deep-rl-class/main/notebooks/unit1/requirements-unit1.txt </code></pre> <p>However, I get the following error:</p> <pre><code class="lang-auto">... Coll...
<p>Thanks for your response! It definitely led me in the right direction. Essentially I replaced the line</p> <pre><code class="lang-auto">!pip install -r https://raw.githubusercontent.com/huggingface/deep-rl-class/main/notebooks/unit1/requirements-unit1.txt </code></pre> <p>with the following lines</p> <pre><code clas...
LORA - how to determine what module_to_save
https://discuss.huggingface.co/t/lora-how-to-determine-what-module-to-save/167206
167,206
5
2025-08-18T19:38:10.239000Z
[ { "id": 239154, "name": "Alex", "username": "SuperBowser", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/{size}.png", "created_at": "2025-08-18T19:38:10.297Z", "cooked": "<p>I am reading through LORA <a href=\"https://huggingface.co/docs/peft/main/en/task_guides/se...
<p>I am reading through LORA <a href="https://huggingface.co/docs/peft/main/en/task_guides/semantic_segmentation_lora">tutorial</a> and one of the options in LoraConfig is modue_to_save. In the example its value is ‘decode-head’. I would like to use LORA with SequenceClassification model and I not sure what module I ne...
<p>If you <a href="https://huggingface.co/docs/peft/en/package_reference/peft_types#peft.TaskType">specify <code>task_type</code></a>, <a href="https://huggingface.co/docs/peft/v0.17.0/en/developer_guides/troubleshooting#randomly-initialized-layers">PEFT will automatically set <code>module_to_save</code> to an appropri...
First instalment the Muon Optimizer tutorial series
https://discuss.huggingface.co/t/first-instalment-the-muon-optimizer-tutorial-series/167227
167,227
65
2025-08-19T02:06:50.741000Z
[ { "id": 239184, "name": "Jen Wei", "username": "bird-of-paradise", "avatar_template": "/user_avatar/discuss.huggingface.co/bird-of-paradise/{size}/51100_2.png", "created_at": "2025-08-19T02:06:50.801Z", "cooked": "<p><img src=\"https://emoji.discourse-cdn.com/apple/glowing_star.png?v=14\" ti...
<p><img src="https://emoji.discourse-cdn.com/apple/glowing_star.png?v=14" title=":glowing_star:" class="emoji" alt=":glowing_star:" loading="lazy" width="20" height="20"> I just published the first part of a <strong>tutorial series on the Muon Optimizer</strong>.</p> <p>Muon (Momentum Orthogonalized by Newton-Schulz) i...
<p>It seems that the standard procedure is to <a href="https://huggingface.co/blog-explorers">press the join button and wait for approval</a>, or to <a href="https://github.com/huggingface/blog?tab=readme-ov-file#how-to-write-an-article-">post on GitHub</a>. If you are in a hurry, it may be quicker to contact the staff...
Tool/Function calling abilities of LLM&rsquo;s that are used locally pulled through ollama
https://discuss.huggingface.co/t/tool-function-calling-abilities-of-llms-that-are-used-locally-pulled-through-ollama/165277
165,277
13
2025-08-01T11:20:02.837000Z
[ { "id": 235956, "name": "Aravindha Sivabalan J", "username": "cranky-coder08", "avatar_template": "/user_avatar/discuss.huggingface.co/cranky-coder08/{size}/51972_2.png", "created_at": "2025-08-01T11:20:02.900Z", "cooked": "<p>i was trying to build a small AI agent that would query the DB an...
<p>i was trying to build a small AI agent that would query the DB and get the details of the customers, for which i tried many models that are available in the ollama model library, but every model keeps throwing an “invalid tool”, or keeps using the irrelevant tool or keeps hallucinating and giving back made up answe...
<p>If you are using Ollama directly without <a href="https://huggingface.co/posts/prithivMLmods/142876386338407">any Agent framework</a>, <a href="https://ollama.com/blog/tool-support">the models that support tool calling are limited</a>, and there seems to be <a href="https://github.com/ollama/ollama/issues/11538">an ...
QLoRA Fine-tuning is Too Slow on LLaMA-based Model Despite BitsAndBytes Optimization
https://discuss.huggingface.co/t/qlora-fine-tuning-is-too-slow-on-llama-based-model-despite-bitsandbytes-optimization/166964
166,964
6
2025-08-16T10:05:35.466000Z
[ { "id": 238766, "name": "Aylin Naebzadeh", "username": "AylinNaebzadeh", "avatar_template": "/user_avatar/discuss.huggingface.co/aylinnaebzadeh/{size}/52343_2.png", "created_at": "2025-08-16T10:05:35.536Z", "cooked": "<p>Hi everyone,</p>\n<p>I’m fine-tuning a LLaMA-based model (<a href=\"htt...
<p>Hi everyone,</p> <p>I’m fine-tuning a LLaMA-based model (<a href="https://huggingface.co/universitytehran/PersianMind-v1.0">universitytehran/PersianMind-v1.0</a>) using <strong>QLoRA</strong> and <strong>BitsAndBytes</strong> in 4-bit precision. I am working with Kaggle GPU T4, and it takes about 75 hours to be fine...
<blockquote> <p><code>tf32=True</code></p> </blockquote> <p>This wouldn’t work with T4 generation (Maybe Turing) GPUs. Using fp16 will allow you to take advantage of the hardware.</p> <blockquote> <p><code>gradient_checkpointing=True,</code><br> <code>gradient_checkpointing_kwargs={"use_reentrant": False},</code></p> <...
AxiosError: Request failed with status code 403 when uploading a file with Streamlit
https://discuss.huggingface.co/t/axioserror-request-failed-with-status-code-403-when-uploading-a-file-with-streamlit/166694
166,694
5
2025-08-13T12:56:51.956000Z
[ { "id": 238337, "name": "Hugo Torres", "username": "HugoFTorres", "avatar_template": "/user_avatar/discuss.huggingface.co/hugoftorres/{size}/52535_2.png", "created_at": "2025-08-13T12:56:52.016Z", "cooked": "<p>I have been facing this error and even after checking similar discussions and add...
<p>I have been facing this error and even after checking similar discussions and adding <code>enableXsrfProtection false</code> to my <code>config.toml</code> file, I keep getting this. The upload bar fills up completely but it raises the error afterwards. In some discussions on Streamlit forums people also recommended...
<p>This issue has existed for quite some time, and there is no known solution. Existing workarounds also do not work.</p> <p>I first asked the AI to summarize the workarounds currently known to address this issue. I will use this as a starting point to explore possible solutions.</p> <hr> <p>Do these steps in order.</p...
Paper authorship claimed, but still pending
https://discuss.huggingface.co/t/paper-authorship-claimed-but-still-pending/166471
166,471
23
2025-08-12T02:56:57.995000Z
[ { "id": 237942, "name": "Jun Feng", "username": "junfeng0288", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/{size}.png", "created_at": "2025-08-12T02:56:58.053Z", "cooked": "<p>I have claimed authorship of this paper, but it has been pending for days now. Please h...
<p>I have claimed authorship of this paper, but it has been pending for days now. Please help me with this, thank you!</p><aside class="onebox allowlistedgeneric" data-onebox-src="https://huggingface.co/papers/2508.06009"> <header class="source"> <a href="https://huggingface.co/papers/2508.06009" target="_blan...
<p><a class="mention" href="/u/junfeng0288">@junfeng0288</a> Should be fixed now. Thanks for your patience.</p>
ModuleNotFoundError: No module named &lsquo;transformers&rsquo;
https://discuss.huggingface.co/t/modulenotfounderror-no-module-named-transformers/11609
11,609
9
2021-11-11T21:05:23.353000Z
[ { "id": 24972, "name": "ardo tee", "username": "mashedpotatotime", "avatar_template": "/user_avatar/discuss.huggingface.co/mashedpotatotime/{size}/3103_2.png", "created_at": "2021-11-11T21:05:23.422Z", "cooked": "<p>Hi! I’ve been having trouble getting <code>transformers</code> to work in Sp...
<p>Hi! I’ve been having trouble getting <code>transformers</code> to work in Spaces.</p> <p>When tested in my environment using <code>python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('we love you'))"</code>, the results show it’s been properly installed. When imported in Colab it works...
<p>it might be due to not having a requirements file. Here is an example of what your spaces app should have - <a href="https://huggingface.co/spaces/flax-community/image-captioning/tree/main" class="inline-onebox">flax-community/image-captioning at main</a> try adding the requirements as they till the environment wha...
The Gradio API by curl doesn&rsquo;t work
https://discuss.huggingface.co/t/the-gradio-api-by-curl-doesnt-work/166428
166,428
5
2025-08-11T17:10:24.724000Z
[ { "id": 237880, "name": "Dany Gold", "username": "GoldDany", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/g/bbce88/{size}.png", "created_at": "2025-08-11T17:10:24.780Z", "cooked": "<p>I try curl from basic guide, but it throws: 405({ “detail”: “Method Not Allowed”}).</p>\n...
<p>I try curl from basic guide, but it throws: 405({ “detail”: “Method Not Allowed”}).</p> <p>Curl: curl -X POST <a href="https://golddany-didefbackend.hf.space/call/predict" rel="noopener nofollow ugc">https://golddany-didefbackend.hf.space/call/predict</a> -s -H “Content-Type: application/json” -d ‘{<br> “data”: [<br...
<p>It worked for some reason… From the server side, it should be the same thing…</p> <pre data-code-wrap="py"><code class="lang-py">import os, requests SPACE = "john6666-apitest1.hf.space" API_NAME = "predict" HF_TOKEN = os.getenv("HF_TOKEN", None) base = f"https://{SPACE}" auth_h = {"Authorization": f"Bearer {HF_TOK...
The Gradio API is not working
https://discuss.huggingface.co/t/the-gradio-api-is-not-working/166407
166,407
5
2025-08-11T13:02:56.970000Z
[ { "id": 237842, "name": "Dany Gold", "username": "GoldDany", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/g/bbce88/{size}.png", "created_at": "2025-08-11T13:02:57.043Z", "cooked": "<p>the gradio throws error: Traceback (most recent call last):<br>\nFile “C:\\Users\\danya\\...
<p>the gradio throws error: Traceback (most recent call last):<br> File “C:\Users\danya\PycharmProjects\DiDefBackend\DiDef\SentenceTransformer.py”, line 45, in<br> client = Client(<br> File “C:\Users\danya\AppData\Local\Programs\Python\Python39\lib\site-packages\gradio_client\client.py”, line 171, in <strong>init</stro...
<blockquote> <p>Python39</p> </blockquote> <p>I think this is probably the culprit this time.</p> <p><a href="https://github.com/gradio-app/gradio/issues/9634">Gradio 5 only works with Python <code>3.10</code> or later</a> on both the server and client, so I think the error is occurring because the versions are differe...
Error with Doc-Builder in smolagents documentation NotFound[Error]
https://discuss.huggingface.co/t/error-with-doc-builder-in-smolagents-documentation-notfound-error/166230
166,230
5
2025-08-09T21:13:45.941000Z
[ { "id": 237524, "name": "David Arias", "username": "beta3", "avatar_template": "/user_avatar/discuss.huggingface.co/beta3/{size}/36181_2.png", "created_at": "2025-08-09T21:13:46.009Z", "cooked": "<p>Hey there <img src=\"https://emoji.discourse-cdn.com/apple/hugs.png?v=14\" title=\":hugs:\" c...
<p>Hey there <img src="https://emoji.discourse-cdn.com/apple/hugs.png?v=14" title=":hugs:" class="emoji" alt=":hugs:" loading="lazy" width="20" height="20"> !</p> <p>I am contributing to the translation project for smolagents on the Hugging Face GitHub repository, translating from English to Spanish.</p> <p>However, wh...
<p>Thank you <img src="https://emoji.discourse-cdn.com/apple/hugs.png?v=14" title=":hugs:" class="emoji" alt=":hugs:" loading="lazy" width="20" height="20">! I tried both version 0.6.0.dev0 and commit 3de0a0e ( <a href="https://github.com/huggingface/doc-builder/tree/3de0a0e9f824fc50e78c873732ef4a4ebaeb005b" class="inl...
How to merge fine-tuned LLaMA-3.1-8B (via LLaMA-Factory) into a single GGUF for LM Studio?
https://discuss.huggingface.co/t/how-to-merge-fine-tuned-llama-3-1-8b-via-llama-factory-into-a-single-gguf-for-lm-studio/156692
156,692
9
2025-05-25T09:48:43.059000Z
[ { "id": 223922, "name": "fsdf", "username": "dasdawedWR", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/{size}.png", "created_at": "2025-05-25T09:48:43.119Z", "cooked": "<p>Hi everyone!</p>\n<p>I successfully fine-tuned the <a href=\"https://huggingface.co/meta-lla...
<p>Hi everyone!</p> <p>I successfully fine-tuned the <a href="https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct"><code>meta-llama/Llama-3.1-8B-Instruct</code></a> model using the dataset <a href="https://huggingface.co/datasets/G-reen/TheatreLM-v2.1-Characters"><code>G-reen/TheatreLM-v2.1-Characters</code></a>.<b...
<p>Maybe similar case?</p><aside class="onebox allowlistedgeneric" data-onebox-src="https://huggingface.co/leafspark/Meta-Llama-3.1-405B-Instruct-GGUF/discussions/2"> <header class="source"> <a href="https://huggingface.co/leafspark/Meta-Llama-3.1-405B-Instruct-GGUF/discussions/2" target="_blank" rel="noopener...
To calibrate or not to calibrate for ranking?
https://discuss.huggingface.co/t/to-calibrate-or-not-to-calibrate-for-ranking/166132
166,132
5
2025-08-08T14:39:07.163000Z
[ { "id": 237362, "name": "John do", "username": "JPFrancoia", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/j/dbc845/{size}.png", "created_at": "2025-08-08T14:39:07.224Z", "cooked": "<p>Hi,</p>\n<p>I made and fine-tuned a binary text classifier with ModernBERT. My objective ...
<p>Hi,</p> <p>I made and fine-tuned a binary text classifier with ModernBERT. My objective is to <em>rank</em> by (relevance) news articles coming from my RSS feeds. I labelled some “good” articles (interesting and relevant to me) and some “bad” articles (irrelevant to me) and fine-tuned the classifier on them.</p> <p>...
<p>My mathematical knowledge is hopeless😭, but I don’t think calibration is necessary for the rankings…</p> <p><a href="https://scikit-learn.org/stable/modules/calibration.html">Probability calibration</a></p> <blockquote> <p>It is generally expected that calibration does not affect ranking</p> </blockquote>
The Best Approach for Weighted Multilabel Classification
https://discuss.huggingface.co/t/the-best-approach-for-weighted-multilabel-classification/137121
137,121
9
2025-01-24T07:13:46.641000Z
[ { "id": 197515, "name": "Aylin Naebzadeh", "username": "AylinNaebzadeh", "avatar_template": "/user_avatar/discuss.huggingface.co/aylinnaebzadeh/{size}/52343_2.png", "created_at": "2025-01-24T07:13:46.720Z", "cooked": "<p>Hello.</p>\n<p>I have a task in which there are 6 different labels for ...
<p>Hello.</p> <p>I have a task in which there are 6 different labels for each record, and every label can have a value from 0 to 3. The dataset is so imbalanced.</p> <div class="md-table"> <table> <thead> <tr> <th>text</th> <th>label_1</th> <th>label_2</th> <th>label_3</th> <th>label_4</th> <th>label_5</th> <th>label_6...
<p>Hi there, I read your question and can see you’re working on an interesting multi-label classification task. Let me help clarify your doubts and provide some guidance on best practices.</p> <p>First, regarding <code>num_labels</code>, setting it equal to 24 (6 labels × 4 intensity levels) is incorrect. For your case...
Can you use PAYG for an entreprise without a Team/Entreprise plan?
https://discuss.huggingface.co/t/can-you-use-payg-for-an-entreprise-without-a-team-entreprise-plan/165927
165,927
5
2025-08-07T08:20:45.839000Z
[ { "id": 237059, "name": "Luca Rizzello", "username": "lrizzellotaskbase", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/l/da6949/{size}.png", "created_at": "2025-08-07T08:20:45.901Z", "cooked": "<p>Hello,</p>\n<p>I am currently trying to generate a lot of embeddings as part...
<p>Hello,</p> <p>I am currently trying to generate a lot of embeddings as part of a research project for my company.</p> <p>We have a team account setup as well as a valid billing method, and a token associated to our company in order to perform API calls.</p> <p>I’m using Qwen3-Embeddings-8B ( <a href="https://hugging...
<p>A PRO, Team, or Enterprise subscription is needed - more here: <a href="https://huggingface.co/docs/inference-providers/en/pricing#pay-as-you-go-details" class="inline-onebox">Pricing and Billing</a> .</p>
Upload efficiently for lazy split download
https://discuss.huggingface.co/t/upload-efficiently-for-lazy-split-download/165834
165,834
5
2025-08-06T10:06:02.849000Z
[ { "id": 236898, "name": "Élie Goudout", "username": "ego-thales", "avatar_template": "/user_avatar/discuss.huggingface.co/ego-thales/{size}/52182_2.png", "created_at": "2025-08-06T10:06:02.938Z", "cooked": "<p>Hi everyone,</p>\n<p>I’m a beginner regarding HuggigFace and I must say I’m comple...
<p>Hi everyone,</p> <p>I’m a beginner regarding HuggigFace and I must say I’m completely lost in their tutorials.</p> <h3><a name="p-236898-the-data-i-have-locally-1" class="anchor" href="#p-236898-the-data-i-have-locally-1"></a>The data I have locally</h3> <p>Essentially CIFAR 10, structured as follows:</p> <pre><code...
<blockquote> <p>Yes. In <code>parquet</code> (default) or <a href="https://huggingface.co/docs/datasets/v4.0.0/en/image_load#webdataset">in <code>WebDataset</code></a>.</p> </blockquote> <p>Ok thanks, I’ll eventually lean towards this.</p> <hr> <p>Regarding the names, I know already that “calibration”, but following th...
The effect of padding_side
https://discuss.huggingface.co/t/the-effect-of-padding-side/67188
67,188
9
2023-12-27T16:32:44.724000Z
[ { "id": 105773, "name": "zhouzaida", "username": "zhouzaida", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/z/ce7236/{size}.png", "created_at": "2023-12-27T16:32:44.782Z", "cooked": "<p>Hello, I have a question about the documentation here (<a href=\"https://huggingface.co/...
<p>Hello, I have a question about the documentation here (<a href="https://huggingface.co/docs/transformers/llm_tutorial#wrong-padding-side" class="inline-onebox">Generation with LLMs</a>). Below is a code block, and I’m curious why setting <code>padding_side</code> to ‘left’ yields the correct inference result, while ...
<p><a class="mention" href="/u/nielsr">@nielsr</a> thanks for your help. After debugging the code, I found the key to the unexpected behavior (padding_side=‘right’) is the next_token comeing from the logit of pad token. I thought it would somehow get the logit of the last non-pad token as the predicted next token, but ...
How can I update knowledge of a model already trained before? (ValueError: Unrecognized model)
https://discuss.huggingface.co/t/how-can-i-update-knowledge-of-a-model-already-trained-before-valueerror-unrecognized-model/165704
165,704
16
2025-08-05T09:50:20.939000Z
[ { "id": 236675, "name": "Matthias Di Giorgio", "username": "DigioMatthy", "avatar_template": "/user_avatar/discuss.huggingface.co/digiomatthy/{size}/51793_2.png", "created_at": "2025-08-05T09:50:20.994Z", "cooked": "<p>I’m using AutoTrain for training my models, I’m currently training llama_...
<p>I’m using AutoTrain for training my models, I’m currently training llama_3.1_8B with my data but I have always trained different models when I added new data on my dataset, so I basically have re-trained another llama_3.1_8B and I thought this is not the best practice…<br> So I decided to re-train the same model I h...
<p>I think you <a href="https://github.com/huggingface/autotrain-advanced/issues/790#issuecomment-2405418224">just need to set <code>"merge_adapter": "true"</code></a>… Probably.</p>
CAS service error when downloading gated models on Databricks even with HF_HUB_DISABLE_XET=1
https://discuss.huggingface.co/t/cas-service-error-when-downloading-gated-models-on-databricks-even-with-hf-hub-disable-xet-1/164793
164,793
13
2025-07-28T10:04:11.587000Z
[ { "id": 235309, "name": "Manjunatha B", "username": "manjusavanth", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/{size}.png", "created_at": "2025-07-28T10:04:11.640Z", "cooked": "<p>I’m unable to download gated models (e.g., <code>mistralai/Mistral-7B-Instruct-v0....
<p>I’m unable to download gated models (e.g., <code>mistralai/Mistral-7B-Instruct-v0.2</code>) using <code>huggingface_hub</code> from within a Databricks cluster. Despite setting <code>HF_HUB_DISABLE_XET=1</code> and removing any <code>hf-xet</code> or <code>hf_transfer</code> packages, the library continues attemptin...
<p>This turned out to be the ip whitelisting issue. After getting the below urls whitelisted, the model download worked with xet.</p> <p><a href="http://transfer.xethub.hf.co" class="onebox" target="_blank" rel="noopener nofollow ugc">transfer.xethub.hf.co</a></p>
404 Existing Hugging Face Inference Model Not Found
https://discuss.huggingface.co/t/404-existing-hugging-face-inference-model-not-found/165198
165,198
23
2025-07-31T17:20:25.091000Z
[ { "id": 235857, "name": "Nolan Idle", "username": "AstroydsChat", "avatar_template": "/user_avatar/discuss.huggingface.co/astroydschat/{size}/51945_2.png", "created_at": "2025-07-31T17:20:25.147Z", "cooked": "<h3><a name=\"p-235857-system-info-1\" class=\"anchor\" href=\"#p-235857-system-inf...
<h3><a name="p-235857-system-info-1" class="anchor" href="#p-235857-system-info-1"></a>System Info</h3> <p>So I am using the hugging face inference API and the model wont work on the inference API but works in the hugging face model playground: huggingface_hub.errors.HfHubHTTPError: 404 Client Error: Not Found for url:...
<p>Hmm… Weird… It works with Python even without token…</p> <pre data-code-wrap="py"><code class="lang-py">import os from huggingface_hub import InferenceClient client = InferenceClient( provider="hf-inference", #api_key=os.getenv("HF_TOKEN", None), ) completion = client.chat.completions.create( model="Hu...
Spaces not working after restart
https://discuss.huggingface.co/t/spaces-not-working-after-restart/164981
164,981
24
2025-07-29T17:09:44.710000Z
[ { "id": 235560, "name": "ezzdev", "username": "ezzdev", "avatar_template": "/user_avatar/discuss.huggingface.co/ezzdev/{size}/31348_2.png", "created_at": "2025-07-29T17:09:44.786Z", "cooked": "<h1><a name=\"p-235560-runtime-error-1\" class=\"anchor\" href=\"#p-235560-runtime-error-1\"></a>ru...
<h1><a name="p-235560-runtime-error-1" class="anchor" href="#p-235560-runtime-error-1"></a>runtime error</h1> <h2><a name="p-235560-container-run-error-failed-to-create-containerd-task-failed-to-create-shim-task-oci-runtime-create-failed-runc-create-failed-unable-to-start-container-process-error-during-container-init-e...
<p>the issue solved after restart and factory rebuild</p>
Inference providers: Access to processor data?
https://discuss.huggingface.co/t/inference-providers-access-to-processor-data/164824
164,824
64
2025-07-28T15:49:02.752000Z
[ { "id": 235357, "name": "Frank Sommers", "username": "fsommers", "avatar_template": "/user_avatar/discuss.huggingface.co/fsommers/{size}/36212_2.png", "created_at": "2025-07-28T15:49:02.812Z", "cooked": "<p>I love the HF inference providers, but now ran into a question:</p>\n<p>Is it possibl...
<p>I love the HF inference providers, but now ran into a question:</p> <p>Is it possible to get access to the model’s processor output as well via the API?</p> <p>My specific use-case is with Qwen2.5-VL. I ask the model to perform localization tasks on document images. I ask the model to find bounding box coordinates f...
<p>If it were a Dedicated Endpoint that you could maintain yourself, you could change the return value <a href="https://huggingface.co/docs/inference-endpoints/guides/custom_handler">by just rewriting <code>handler.py</code></a>, but since you are using the Inference Provider, that part is a black box.</p> <p>Therefor...
Model responses are random ignoring my dataset
https://discuss.huggingface.co/t/model-responses-are-random-ignoring-my-dataset/164782
164,782
16
2025-07-28T09:12:37.093000Z
[ { "id": 235282, "name": "Matthias Di Giorgio", "username": "DigioMatthy", "avatar_template": "/user_avatar/discuss.huggingface.co/digiomatthy/{size}/51793_2.png", "created_at": "2025-07-28T09:12:37.148Z", "cooked": "<p>I am using AutoTrain to finetune my Llama model with my custom data and t...
<p>I am using AutoTrain to finetune my Llama model with my custom data and the model give random responses ignoring my dataset. The thing is that on my dataset I have 145 rows in JSONL and when I start the fine-tuning with this dataset and I analyze logs I can see these rows:<br> <img src="https://us1.discourse-cdn.com...
<p>Hmm, I think you should ask someone who knows more about LLM fine-tuning than I do, but what I sometimes hear is that “500 to 1000 samples are sufficient for LoRA”, “<a href="https://arxiv.org/pdf/2305.11206">data diversity is more important than quantity</a>”, etc.</p> <p>Since <a href="https://huggingface.co/posts...
How to save my model to use it later
https://discuss.huggingface.co/t/how-to-save-my-model-to-use-it-later/20568
20,568
5
2022-07-19T12:37:44.659000Z
[ { "id": 40527, "name": "Hoss", "username": "slowturtle", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/s/77aa72/{size}.png", "created_at": "2022-07-19T12:37:44.729Z", "cooked": "<p>Hello Amazing people,<br>\nThis is my first post and I am really new to machine learning and ...
<p>Hello Amazing people,<br> This is my first post and I am really new to machine learning and Hugginface.</p> <p>I followed this awesome guide here <a href="https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/BERT/Fine_tuning_BERT_(and_friends)_for_multi_label_text_classification.ipy...
<p>Hello again,</p> <p>So I followed that tutorial to train my model(using distilert-base-uncased).<br> saved the model with:</p> <p><code>trainer.save_model("./my_model")</code></p> <p>and then I loaded the model:</p> <pre><code class="lang-auto">from transformers import DistilBertConfig, DistilBertModel path = 'path_...
Fine-tune Mistral 7B–9B or 24B (bnb 4bit)
https://discuss.huggingface.co/t/fine-tune-mistral-7b-9b-or-24b-bnb-4bit/164597
164,597
9
2025-07-26T12:47:57.932000Z
[ { "id": 235043, "name": "Nikita", "username": "oukaise", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/o/a87d85/{size}.png", "created_at": "2025-07-26T12:47:57.990Z", "cooked": "<p>Hi everyone,</p>\n<p>I’m exploring the feasibility of fine-tuning a 7B–9B model (like Mistral...
<p>Hi everyone,</p> <p>I’m exploring the feasibility of fine-tuning a 7B–9B model (like Mistral or Deepseek) on consumer hardware using 4-bit quantization (bnb). My current setup:</p> <p><strong>Specs:</strong></p> <ul> <li>GPU: Tesla V100 16GB</li> <li>CPU: Xeon E5-2690v3</li> <li>RAM: 64GB DDR4</li> <li>OS: Ubuntu 20...
<p>For now, <a href="https://www.unsloth.ai/blog/mistral-small-3.1">with 24B seems difficult with just one card</a>, but with 7B should be doable.</p>
Trainer never invokes compute_metrics
https://discuss.huggingface.co/t/trainer-never-invokes-compute-metrics/11440
11,440
5
2021-11-07T21:55:35.715000Z
[ { "id": 24642, "name": "bnqu", "username": "nbqu", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/n/9dc877/{size}.png", "created_at": "2021-11-07T21:55:35.796Z", "cooked": "<pre><code class=\"lang-python\">def compute_metrics(p: EvalPrediction):\n print(\"***Computing...
<pre><code class="lang-python">def compute_metrics(p: EvalPrediction): print("***Computing Metrics***") # THIS LINE NEVER PRINTED preds = p.predictions[0] if isinstance(p.predictions, tuple) else p.predictions preds = np.squeeze(preds) if is_regression else np.argmax(preds, axis=1) if da...
<p>You can see the batches that will be passed to your model for evaluation with:</p> <pre><code class="lang-auto">for batch in trainer.get_eval_dataloader(eval_dataset): break </code></pre> <p>And see if it does contain the <code>"labels"</code> key.</p>
HF Agents Course 404 Client Error: Not Found for url
https://discuss.huggingface.co/t/hf-agents-course-404-client-error-not-found-for-url/162747
162,747
23
2025-07-12T11:58:39.494000Z
[ { "id": 232410, "name": "Alevtina Vesper", "username": "TinaVesper", "avatar_template": "/user_avatar/discuss.huggingface.co/tinavesper/{size}/50991_2.png", "created_at": "2025-07-12T11:58:39.553Z", "cooked": "<p>Hey guys</p>\n<p>I’m struggling with this error:</p>\n<p>404 Client Error: Not ...
<p>Hey guys</p> <p>I’m struggling with this error:</p> <p>404 Client Error: Not Found for url: <a href="https://router.huggingface.co/hf-inference/models/Qwen/Qwen2.5-Coder-32B-Instruct/v1/chat/completions">https://router.huggingface.co/hf-inference/models/Qwen/Qwen2.5-Coder-32B-Instruct/v1/chat/completions</a></p> <p>...
<p>I can get HuggingFaceInferenceAPI to work by adding the provider as below.</p> <p>llm = HuggingFaceInferenceAPI(<br> model_name=“Qwen/Qwen2.5-Coder-32B-Instruct”,<br> temperature=0.7,<br> max_tokens=100,<br> token=hf_token,<br> provider=“together”,<br> )</p>
Persistent 401 Unauthorized Error on Gated Models
https://discuss.huggingface.co/t/persistent-401-unauthorized-error-on-gated-models/163756
163,756
6
2025-07-19T23:19:50.295000Z
[ { "id": 233894, "name": "Alvin Siphosenkosi Moyo", "username": "AlvinSiphosenkosi", "avatar_template": "/user_avatar/discuss.huggingface.co/alvinsiphosenkosi/{size}/51382_2.png", "created_at": "2025-07-19T23:19:50.363Z", "cooked": "<p>Hello,</p>\n<p>I am getting a persistent <code>401 Unauth...
<p>Hello,</p> <p>I am getting a persistent <code>401 Unauthorized</code> error in Google Colab when trying to download any gated model, such as <code>meta-llama/Meta-Llama-3-8B-Instruct</code>.</p> <p>I have already confirmed on the model’s webpage that I have been granted access. The error continues even after I gener...
<p>If the problem is account-specific, I think it would be quicker to contact Hugging Face support. <a href="mailto:website@huggingface.co">website@huggingface.co</a><br> Another case that occasionally occurs is that extra information is added when copying and pasting tokens. This is more likely to happen when using sh...
Static html space direct link gives 404
https://discuss.huggingface.co/t/static-html-space-direct-link-gives-404/164180
164,180
24
2025-07-23T01:30:35.653000Z
[ { "id": 234456, "name": "User 93729", "username": "user93729", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/u/bc79bd/{size}.png", "created_at": "2025-07-23T01:30:35.726Z", "cooked": "<p>This link works <a href=\"https://huggingface.co/spaces/user93729/exp\" class=\"inline-...
<p>This link works <a href="https://huggingface.co/spaces/user93729/exp" class="inline-onebox">Exp - a Hugging Face Space by user93729</a></p> <p>But this link gives 404 <a href="https://user93729-exp.hf.space/" rel="noopener nofollow ugc">https://user93729-exp.hf.space/</a></p> <p>It is a static HTML page. Why doesn’t...
<p>In static space, seems <a href="https://user93729-exp.static.hf.space">the URL will be like this</a>.</p>
Dataset scripts are no longer supported
https://discuss.huggingface.co/t/dataset-scripts-are-no-longer-supported/163891
163,891
10
2025-07-21T04:59:31.021000Z
[ { "id": 234067, "name": "kajal gupta", "username": "kajalhappy", "avatar_template": "https://avatars.discourse-cdn.com/v4/letter/k/54ee81/{size}.png", "created_at": "2025-07-21T04:59:31.085Z", "cooked": "<p>I was using earlier GeneratorBasedBuilder class for loading database now i am getting...
<p>I was using earlier GeneratorBasedBuilder class for loading database now i am getting below error :<br> Exception occurred: Dataset scripts are no longer supported.</p> <p>using load_dataset for loading script . but somehow it is not supported not</p> <p>plz tell me what is the other way to load database using Gener...
<p>yes, we can not use load_dataset if implementing a Builder class.<br> so need to explicitly call builder class and generate dataset.<br> builder.download_and_prepare()<br> dataset = builder.as_dataset(split=Split.TRAIN)</p>