Views
No views yet

| Text | File |
|---|---|
| [S1] denk je dat je een open source model kan trainen met weinig geld en middelen? [S2] ja ik denk het wel. [S1] oh ja, hoe dan? [S2] nou kijk maar in de repo op Git Hub of Hugging Face. | intro |
| [S1] hoeveel stemmen worden er ondersteund? [S2] nou, uhm, ik denk toch wel meer dan twee. [S3] ja, ja, d dat is het mooie aan dit model. [S4] ja klopt, het ondersteund tot vier verschillende stemmen per prompt. | multi |
| [S1] h h et is dus ook mogelijk, om eh ... uhm, heel veel t te st stotteren in een prompt. | stutter |
| [S1] (laughs) luister, ik heb een mop, wat uhm, drinkt een webdesigner het liefst? [S2] nou ... ? [S1] Earl Grey (laughs) . [S2] (laughs) heel goed. | laughs |
| [S1] je hebt maar weinig audio nodig om een stem te clonen de rest van deze tekst is uitgesproken door een computer. [S2] wauw, dat klinkt wel erg goed. [S1] ja, ik hoop dat je er wat aan hebt. | clone |
[S1], [S2], [S3], [S4] to indicate the different speakers. Always start with [S1] and always alternate between [S1] and [S2] (i.e. [S1]... [S1]... is not good).... in the prompt.uh, uhm, mmm.(laughs) tag. However, use it sparingly because the model quickly derails for too many events.1# Make sure you have the runtime dependencies installed for JAX
2# You can also extract the HF inference code and the transformers dependency
3sudo apt-get install build-essential cmake protobuf-compiler libprotobuf-dev
4
5uv sync # For CPU
6uv sync --extra cuda # For CUDA
7
8# Run the inference demo with HF transformers
9uv run python src/parkiet/dia/inference_hf.py1# Make sure you have the runtime dependencies installed for JAX
2sudo apt-get install build-essential cmake protobuf-compiler libprotobuf-dev
3
4uv sync # For CPU
5uv sync --extra cuda # For CUDA
6
7wget https://huggingface.co/pevers/parkiet/resolve/main/dia-nl-v1.pth?download=true -O weights/dia-nl-v1.pth
8uv run python src/parkiet/dia/inference.py1# Make sure you have the runtime dependencies installed for JAX
2sudo apt-get install build-essential cmake protobuf-compiler libprotobuf-dev
3
4uv sync --extra tpu # For TPU
5uv sync --extra cuda # For CUDA
6
7# Download the checkpoint
8wget https://huggingface.co/pevers/parkiet/resolve/main/dia-nl-v1.zip?download=true -O weights/dia-nl-v1.zip
9
10# Create the checkpoint folder and unzip
11mkdir -p weights
12unzip weights/dia-nl-v1.zip -d weights
13
14# Run the inference demo
15# NOTE: Inference can take a while because of JAX compilation. Subsequent calls will be cached and much faster. I'm working on some performance improvements.
16uv run python src/parkiet/jax/inference.py| Framework | float32 VRAM | bfloat16 VRAM |
|---|---|---|
| JAX | ≥19 GB | ≥10GB |
| PyTorch | ≥15 GB | ≥10GB |
bfloat16 typically reduces VRAM usage versus float32 on supported hardware to about 10GB. However, converting the full model to bfloat16 causes more instability and hallucinations. Setting just the compute_dtype to bfloat16 is a good compromise and is also done during training. We would like to reduce the VRAM requirements in a next training run.