# Help with autotrain/LLM finetuning please

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-with-autotrain-llm-finetuning-please%2F50016%3E%5C
**Category:** Beginners\
**Created:** [August 8, 2023, 8:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-with-autotrain-llm-finetuning-please%2F50016 "2023-08-08T20:02:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rabbitfighter](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@rabbitfighter](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Frabbitfighter)%5C
**Post date:** [August 8, 2023, 8:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-with-autotrain-llm-finetuning-please%2F50016%2F1 "2023-08-08T20:02:58Z")

</div>

I am a writer and a complete beginner with huggingface/machine learning. I am interested in finetuning an LLM on my own published books so that I can ask it to generate text that appears to be written in my own style based on a simple prompt. I managed to partially do this using the gpt\_2\_simple python framework installed on my own computer. I trained it on a massive plain text file of 3 of my own novels concatenated together. It produces text in my style but it’s nonsense and I can only give it an initial text prompt which it then completes. I would like to be able to do this via interactive chat with prompts like “write a paragraph about a cat” etc. I’ve been trying to follow the LLM Finetuning tutorial here:

> **[LLM Finetuning](https://huggingface.co/docs/autotrain/llm_finetuning)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

I think this tutorial is not really aimed at achieving exactly what I’m after though. I did manage to set up an autotraining session with my writing as the ‘generic mode’ data input. I did this by pasting the text into a giant csv file with just one column labeled ‘text’. But after running for about 30 seconds it stopped and just says ‘error’ at the bottom of the page.

So, my questions:

1. Is this even possible with huggingface autotraining?
2. If so, which hub model should I use?
3. And how should I format the data?

This is really just a kind of experiment for me. I’m playing around with machine learning out of curiosity and because I think it’s cool. Any help much appreciated!

---

<div class="post-metadata">

**Author:** ![JordanLaforet](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@JordanLaforet](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJordanLaforet)%5C
**Post date:** [August 9, 2023, 9:13am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-with-autotrain-llm-finetuning-please%2F50016%2F2 "2023-08-09T09:13:27Z")

</div>

I am also a beginner and I find myself in kind of the same situation… let’s help one another 🙂

I woud like to fine tune an LLM and I encounter an error after 9-10s once I click on ‘Create Project’.  
I also managed to set up a personal space and loaded a dataset of only one big column in accordance with ‘generic mode’.

Some remarks :

- you can access the details of the error by clicking on the logs buttong in the top left corner of your personal space

![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/5/3/536a958efee82286b282f862724d669a4f558d0d.png)

- Could you please copy/paste the logs you get ?

- Have you already set up a payment method or not ?

---

<div class="post-metadata">

**Author:** ![rabbitfighter](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@rabbitfighter](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Frabbitfighter)%5C
**Post date:** [August 10, 2023, 1:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-with-autotrain-llm-finetuning-please%2F50016%2F3 "2023-08-10T13:46:02Z")

</div>

Thanks for your reply. I checked the logs and the error is:

File “/app/env/lib/python3.9/site-packages/requests/models.py”, line 1021, in raise\_for\_status raise HTTPError(http\_error\_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: [https://api.autotrain.huggingface.co/projects/80921/start\_training](https://api.autotrain.huggingface.co/projects/80921/start_training)

So, that doesn’t seem to be an issue with the input data or the configuration of the job. I have not set up a payment method but the job cost estimate was $0.00.

Did you get yours working?

* * *

---

<div class="post-metadata">

**Author:** ![JordanLaforet](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@JordanLaforet](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJordanLaforet)%5C
**Post date:** [August 11, 2023, 10:41am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-with-autotrain-llm-finetuning-please%2F50016%2F4 "2023-08-11T10:41:22Z")

</div>

My model isn’t training properly yet, but I’ve progressed beyond this step.

You must input a payment card to enable your model’s training.

Only one AutoTrain project is free (and only if your dataset contains fewer than 3000 rows and you include just one model).

I subscribed using the “Pro” offer, which resolved that specific error.

Please refer to:

- [Hugging Face – Pricing](https://huggingface.co/pricing)
- [Billing](https://huggingface.co/docs/hub/billing)
- [Hugging Face – The AI community building the future.](https://huggingface.co/subscribe/pro)

Cheers,
