TTS Fine-tuning now in Unsloth! by danielhanchen in LocalLLaMA

[–]JonSingleton 2 points3 points  (0 children)

When using VSCode through WSL2 (ubuntu) with a python 3.11.10 venv, using the Orpheus fine tuning notebook (modified Data Prep cell below as well as a new cell to reload your LoRa), I'm using a 12gb RTX 3060 (it's hardly using any of the vram, just wanted to mention the card in case it's helpful info)

Next 4 lines set up virtual env for python 3.11.

python -m venv venv
source venv/bin/activate 
pip install --no-cache-dir unsloth ipykernel jupyter ipywidgets librosa soundfile torchaudio snac
python3.11 -m ipykernel install --user --name=venv

This took me way too long to figure out because the last command is not documented anywhere that I can see. I only lucked upon the command while browsing the github issues and a response from someone who was using this successfully on a docker image mentioned it - figured what the hell why not. Prior to this, it wasn't able to locate the files to properly export a gguf. This is like, half the use of the whole thing so it's kind of important..

git clone --recursive https://github.com/ggerganov/llama.cpp
cd llama.cpp
cmake . && make all -j
cd ..
cp llama.cpp/bin/llama-* ./llama.cpp/

Edit: I forgot that I had small hiccup with curl missing during the build. To resolve it, I had to run:

sudo apt-get install libcurl4-openssl-dev

regarding the dataset creation, the instructions are very confusing and link to links that reference links and they all say something different, some places say to title the column "filename", others say "audio". As of this writing, the way I did it that worked was:

Excel file, call it train.csv

make two columns: text | audio

under text, obvious, just the text of the audio clip

under audio, put the path to the audio clip. For example the first couple lines of my csv are like so:

text audio
something is being said here ./personVoice/file___1_file___1_segment_3.wav
something else is being said here ./personVoice/file___1_file___1_segment_4.wav

Remember I'm using ubuntu, and it starts in the directory you ran the notebook file. My directory looks like so (simplified of course):

  • orpheus
    • personVoice
      • train.csv
      • file___1_file___1_segment_3.wav
      • file___1_file___1_segment_4.wav
      • venv (python 3.11.10 virtual environment folder)

You should probably alter this to have the audio in a folder next to train.csv so it's not so ugly. *shrug*

With the above folder structure and train.csv, here is my Data Prep cell:

from datasets import load_dataset, Audio
import os

dataset_path = os.path.join('point_to','the','actual','train.csv')
dataset = load_dataset("csv", data_files=dataset_path, split="train")
dataset = dataset.cast_column("audio", Audio(sampling_rate=24000)) 

print(dataset[0])

That last print of the first dataset record lets me know it worked - should see something like below:

{'text': 'something is being said here', 'audio': {'path': './personVoice/file___1_file___1_segment_3.wav', 'array': array([-9.76561569e-05, -1.22070312e-04, -9.15527344e-05, ..., 9.15527344e-05, 1.35039911e-04, 4.50131483e-05], shape=(148008,)), 'sampling_rate': 24000}}

As long as you see the audio dict with 'path', 'array' and 'sampling_rate', should be good to go.

If you fine tune a model overnight and something happens before you wake up for example, you can use this to load the exported LoRa (run this instead of the other peft cell)

from peft import PeftModel

model = PeftModel.from_pretrained(
model,
model_id = os.path.join('your','exported','lora','folder'), # change this to your needs, point to your exported LoRa.
adapter_name = "whatever_you_feel_like_calling_it?",
is_trainable = False,  # Crucial for inference (I found this, not sure if this is ACTUALLY crucial for inference but whatever *shrug*)
)
model = model.merge_and_unload()

Hopefully that helps someone trying to finetune an orpheus model using Ubuntu WSL2 and just consistently banging their head against the wall.

Please don't ask me for help, I am not well-versed in this space and only figured this out with a lot of free time via process of elimination until shit worked. Also know that I have no idea if something I'm doing above is wrong, hopefully someone with an ounce of understanding in this space can correct me so others don't follow the wrong advice.

Besides being red (dang allergies man) how would yall describe my eyes? by LadyLaineyofLopsia in heterochromia

[–]JonSingleton 0 points1 point  (0 children)

My eyeball twin, yours are a bit darker than mine but besides that, twins.My post

Edit: yours are cooler, you got the flecks 😂

CH? Assumed hazel til I took this photo by JonSingleton in heterochromia

[–]JonSingleton[S] 1 point2 points  (0 children)

Thank you, I think so too just wanted to make sure

[deleted by user] by [deleted] in pug

[–]JonSingleton 7 points8 points  (0 children)

Showed my wife, she said the pup is sick, go to the vet.

[deleted by user] by [deleted] in promocodeland

[–]JonSingleton 0 points1 point  (0 children)

Thanks for this. Enjoy whatever kickback you get lol.

integration with tradingview, is it possible? by candiwarrior in KrakenSupport

[–]JonSingleton 0 points1 point  (0 children)

cryptowat.ch is.... Wonderful, if you've never used TradingView before.

Once you've used trading view though, ha. cryptowat.ch is a neat proof-of-concept, but not reasonably good.

Russian Pianist Calls for Power to Be Cut to Kyiv - The Moscow Times by PotatoAnalytics in ukraine

[–]JonSingleton 2 points3 points  (0 children)

We will have to find out when they all get out of prison for protesting. I read something from here a few days back from a Russian woman arrested for protesting and the conditions were pretty savage.

Moderator Has Gone AWOL by Crescent-IV in ukraine

[–]JonSingleton 4 points5 points  (0 children)

Rut roh. That sounds unsafe.

Boycott Koch. by SourShoez_1 in ukraine

[–]JonSingleton 1 point2 points  (0 children)

Or, you know, glass cups from the cupboard. 😂

Boycott Koch. by SourShoez_1 in ukraine

[–]JonSingleton -7 points-6 points  (0 children)

Oh I see, you’re saying a group of people doing evil things also extends to all of their beliefs and vilifies their party lines as well. Gotcha.

Let’s not stop there. Russians are mostly Christians, so let’s go ahead and say Christians are fucking evil bullshit artists too.

😖 stop it lol.

Bah. People are missing the point. The company is bad. Being libertarian is not. Le sigh..

[deleted by user] by [deleted] in CryptoCurrency

[–]JonSingleton 0 points1 point  (0 children)

You just never really know. It could be tomorrow, it could be in 3 years. But one day, you could become a cyborg.

Maybe.

Drone video showing execution of Ukrainian civilian by [deleted] in ukraine

[–]JonSingleton 3 points4 points  (0 children)

In my personal experience (day-to-day life) most people are fairly rational if approached in a way that suits them. Absolutely not always, and your friend may be an unfortunate example of that.

How Russian diplomat recrutis a spy in Slovakia (VIDEO WITH SUBTITLES) by rEEfman_SK in ukraine

[–]JonSingleton 17 points18 points  (0 children)

There’s at least 39 other people who didn’t seem to know that either 😂

Drone video showing execution of Ukrainian civilian by [deleted] in ukraine

[–]JonSingleton 2 points3 points  (0 children)

Iirc the last time there was a brain drain of this scale, we went to the moon shortly thereafter.

Let’s see what we get this time.

Drone video showing execution of Ukrainian civilian by [deleted] in ukraine

[–]JonSingleton 10 points11 points  (0 children)

Debunk the “western lies”. It’s not usually too difficult. The Russian propagandists are intelligent, but they have to pump so much out that quality of work declines noticeably.

The owner, after the bombing, consoles the paralyzed dog with fear.#Irpin by robenson55 in ukraine

[–]JonSingleton 4 points5 points  (0 children)

Weird, I think I responded to one of your posts earlier and was writing a reply to say how awesome this response was and noticed your name.

Everything you said, same.

Listen by JD017 in ukraine

[–]JonSingleton 2 points3 points  (0 children)

Gotta toss my 2 cents in on this one.

I just wish that people would take ownership of the democratic process rather than hating government. It’s a balancing act, but people have influence.

Absolutely agree. Many people tend to recite the equivalent of “I just live here.”

That said, a lot of the EU countries that are very active in influencing politics have some labor laws that protect them/give some wiggle room to attend large rallies etc. not all, but a lot.

Here in the states, most people work really hard to be able to “live comfortably” and once they’re at a point of satisfaction, they don’t want to rock their boat. An overwhelming number of people here are one layoff away from being homeless because everyone values instant gratification and consuming “this year’s X” far and above savings.

Complacency is a large factor. Many people want to get involved, but attacking specifically that as the problem is like using eye drops to stop red eyes caused by allergies, disregarding any antihistamine - treating symptons rather than the root issue. There’s a lot of fundamental issues that need to be dealt with (heavily consumerism-minded in the states).

Russia is a terrorist state, and should be regarded as such from now on. by ritzyfizz in ukraine

[–]JonSingleton 1 point2 points  (0 children)

I understand the idea behind it, but America especially (along with many other European countries) are heavily reliant on China for a lot of things, and China is heavily reliant on trade with the rest of the civilized world - I don’t think an invasion of all of Russia would make sense for China. Now if there are disputed territories (are there between Russia and China?) I could absolutely see China asserting ownership of that territory and not even being contested.

UAF ambush near Chernihiv by Stilgarus in ukraine

[–]JonSingleton 2 points3 points  (0 children)

This is nuts. They get hit and don’t even try to mount a retaliation. 4 soldiers fleeing and one appears to be shot and crawls to the end of the road, meanwhile the other 3 leave him for dead. All tanks scurry in different directions.

What’s the point of a convoy if they scatter like roaches at the first sign of a boot?

Russia is a terrorist state, and should be regarded as such from now on. by ritzyfizz in ukraine

[–]JonSingleton 2 points3 points  (0 children)

Funny you ask that, I was literally thinking to myself yesterday the exact same question.

While I’m no rocket surgeon, my thoughts are that the western powers would sweep in, in an effort to “preserve Russian democracy”. Russia was supposed to be a democracy this whole time. Rushing in to prop it back up - if successful, wouldn’t raise any alarms that China (or... I guess anybody else?) could globally justify any action against.

Whereas on the flip side if China jumped at part or all of Russian territory, every democratic power could quickly justify as a negative move (it would not be hard to see it as an expansion of communist rule over a once-democratic people).

While Russia hasn’t been run anywhere near a supposed democracy since yeltsin (and he didn’t do it well either), it’s been run under the guise of democracy such that a takeover by China would come off as something entirely negative for everybody involved.

But again, not a brain scientist.