Instructions to use AliciaTestarossa/BigTranslate-13b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use AliciaTestarossa/BigTranslate-13b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AliciaTestarossa/BigTranslate-13b-GGUF", filename="BigTranslate-13b-IQ3_XS.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AliciaTestarossa/BigTranslate-13b-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS # Run inference directly in the terminal: llama cli -hf AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS # Run inference directly in the terminal: llama cli -hf AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS
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 AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS # Run inference directly in the terminal: ./llama-cli -hf AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS
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 AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS
Use Docker
docker model run hf.co/AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS
- LM Studio
- Jan
- Ollama
How to use AliciaTestarossa/BigTranslate-13b-GGUF with Ollama:
ollama run hf.co/AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS
- Unsloth Studio
How to use AliciaTestarossa/BigTranslate-13b-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 AliciaTestarossa/BigTranslate-13b-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 AliciaTestarossa/BigTranslate-13b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AliciaTestarossa/BigTranslate-13b-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use AliciaTestarossa/BigTranslate-13b-GGUF with Docker Model Runner:
docker model run hf.co/AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS
- Lemonade
How to use AliciaTestarossa/BigTranslate-13b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AliciaTestarossa/BigTranslate-13b-GGUF:IQ3_XS
Run and chat with the model
lemonade run user.BigTranslate-13b-GGUF-IQ3_XS
List all available models
lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)BigTranslate: Augmenting Large Language Models with Multilingual Translation Capability over 100 Languages
Large language models (LLMs) demonstrate promising translation performance among various natural languages. However, many LLMs especially the open-sourced ones, such as BLOOM and LLaMA, are English-dominant and support only dozens of natural languages, making the potential of LLMs on language translation less explored. In this work, we present BigTranslate which adapts LLaMA that covers only 20 languages and enhances it with multilingual translation capability on more than 100 languages. BigTranslate is built upon LLaMA-13B and it is optimized in three steps. First, we continue training LLaMA with massive Chinese monolingual data. Second, we continue training the model with a large-scale parallel dataset that covers 102 natural languages. Third, we instruct-tune the foundation model with multilingual translation instructions, leading to our BigTranslate model. The preliminary experiments on multilingual translation show that BigTranslate performs comparably with ChatGPT and Google Translate in many languages and even outperforms ChatGPT in 8 language pairs. We release the BigTranslate model and hope it can advance the research progress.
More Details can be found at https://github.com/ZNLP/BigTranslate and https://arxiv.org/abs/2305.18098
- Downloads last month
- 10
2-bit
3-bit
4-bit
5-bit
6-bit
16-bit
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AliciaTestarossa/BigTranslate-13b-GGUF", filename="", )