Instructions to use Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf", filename="vntl-llama3-8b-v2-hf-bf16.gguf", )
llm.create_chat_completion( messages = "\"ะะตะฝั ะทะพะฒัั ะะพะปััะณะฐะฝะณ ะธ ั ะถะธะฒั ะฒ ะะตัะปะธะฝะต\"" )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M
Use Docker
docker model run hf.co/Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf with Ollama:
ollama run hf.co/Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M
- Unsloth Studio
How to use Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf to start chatting
- Docker Model Runner
How to use Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf with Docker Model Runner:
docker model run hf.co/Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M
- Lemonade
How to use Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf:Q4_K_M
Run and chat with the model
lemonade run user.vntl-llama3-8b-v2-imatrix-gguf-Q4_K_M
List all available models
lemonade list
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf to start chattingUsing HuggingFace Spaces for Unsloth
# No setup required# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf to start chattingimatrix quants of lmg-anon/vntl-llama3-8b-v2-hf using a multilingual fork of Bartowski's imatrix dataset
Summary
This is a LLaMA 3 Youko qlora fine-tune, created using a new version of the VNTL dataset. The purpose of this fine-tune is to improve performance of LLMs at translating Japanese visual novels to English.
Unlike the previous version, this one doesn't includes the "chat mode".
Notes
For this new version of VNTL 8B, I've rebuilt and expanded VNTL's dataset from the groud up, and I'm happy to say it performs really well, outperforming the previous version when it comes to accuracy and stability, it makes far fewer mistakes than it even when running at high temperatures (though I still recommend temperature 0 for the best accuracy).
Some major changes in this version:
- Switched to the default LLaMA3 prompt format since people had trouble with the custom one
- Added proper support for multi-line translations (the old version only handled single lines)
- Overall better translation accuracy
One thing to note: while the translations are more accurate, they tend to be more literal compared to the previous version.
Sampling Recommendations
For optimal results, it's highly recommended to use neutral sampling parameters (temperature 0 with no repetition penalty) when using this model.
Training Details
This fine-tune was done using similar hyperparameters as the previous version. The only difference is the dataset, which is a brand-new one.
- Rank: 128
- Alpha: 32
- Effective Batch Size: 45
- Warmup Ratio: 0.02
- Learning Rate: 6e-5
- Embedding Learning Rate: 1e-5
- Optimizer: grokadamw
- LR Schedule: cosine
- Weight Decay: 0.01
Train Loss: 0.42
Translation Prompt
This fine-tune uses the LLaMA 3 prompt format, this is an prompt example for translation:
<|begin_of_text|><|start_header_id|>Metadata<|end_header_id|>
[character] Name: Uryuu Shingo (็็ ๆฐๅพ) | Gender: Male | Aliases: Onii-chan (ใๅ
ใกใใ)
[character] Name: Uryuu Sakuno (็็ ๆกไน) | Gender: Female<|eot_id|><|start_header_id|>Japanese<|end_header_id|>
[ๆกไน]: ใโฆโฆใใใใ<|eot_id|><|start_header_id|>English<|end_header_id|>
[Sakuno]: ใ... Sorry.ใ<|eot_id|><|start_header_id|>Japanese<|end_header_id|>
[ๆฐๅพ]: ใใใใใใใ่จใฃใกใใชใใ ใใฉใ่ฟทๅญใงใใใฃใใใๆกไนใฏๅฏๆใใใใใใใใๅฟ้
ใใกใใฃใฆใใใ ใไฟบใ<|eot_id|><|start_header_id|>English<|end_header_id|>
[Shingo]: "Nah, I know itโs weird to say this, but Iโm glad you got lost. Youโre so cute, Sakuno, so I was really worried about you."<|eot_id|>
The generated translation for that prompt, with temperature 0, is:
[Shingo]: "Nah, I know itโs weird to say this, but Iโm glad you got lost. Youโre so cute, Sakuno, so I was really worried about you."
Trivia
The Metadata section isn't limited to character information - you can also add trivia and teach the model the correct way to pronounce words it struggles with.
Here's an example:
<|begin_of_text|><|start_header_id|>Metadata<|end_header_id|>
[character] Name: Uryuu Shingo (็็ ๆฐๅพ) | Gender: Male | Aliases: Onii-chan (ใๅ
ใกใใ)
[character] Name: Uryuu Sakuno (็็ ๆกไน) | Gender: Female
[element] Name: Murasamemaru (ๅข้จไธธ) | Type: Quality<|eot_id|><|start_header_id|>Japanese<|end_header_id|>
[ๆกไน]: ใโฆโฆใใใใ<|eot_id|><|start_header_id|>English<|end_header_id|>
[Sakuno]: ใ... Sorry.ใ<|eot_id|><|start_header_id|>Japanese<|end_header_id|>
[ๆฐๅพ]: ใใใใใใใ่จใฃใกใใชใใ ใใฉใ่ฟทๅญใงใใใฃใใใๆกไนใฏๅข้จไธธใใใใใใใใๅฟ้
ใใกใใฃใฆใใใ ใไฟบใ<|eot_id|><|start_header_id|>English<|end_header_id|>
The generated translation for that prompt, with temperature 0, is:
[Shingo]: "Nah, I know itโs not the best thing to say, but Iโm glad you got lost. Sakunoโs Murasamemaru, so I was really worried about you, you know?"
- Downloads last month
- 53
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf
Base model
meta-llama/Meta-Llama-3-8B
Install Unsloth Studio (macOS, Linux, WSL)
# Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Casual-Autopsy/vntl-llama3-8b-v2-imatrix-gguf to start chatting