Instructions to use unsloth/Hy-MT2-1.8B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/Hy-MT2-1.8B-GGUF with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="unsloth/Hy-MT2-1.8B-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("unsloth/Hy-MT2-1.8B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/Hy-MT2-1.8B-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 unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL
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 unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./llama-cli -hf unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL
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 unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL
- LM Studio
- Jan
- Ollama
How to use unsloth/Hy-MT2-1.8B-GGUF with Ollama:
ollama run hf.co/unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL
- Unsloth Studio
How to use unsloth/Hy-MT2-1.8B-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 unsloth/Hy-MT2-1.8B-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 unsloth/Hy-MT2-1.8B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/Hy-MT2-1.8B-GGUF to start chatting
- Docker Model Runner
How to use unsloth/Hy-MT2-1.8B-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/Hy-MT2-1.8B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/Hy-MT2-1.8B-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.Hy-MT2-1.8B-GGUF-UD-Q4_K_XL
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse files- .gitattributes +2 -1
- Hy-MT2-1.8B-Q5_K_M.gguf +3 -0
.gitattributes
CHANGED
|
@@ -38,4 +38,5 @@ Hy-MT2-1.8B-UD-Q5_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 38 |
Hy-MT2-1.8B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
Hy-MT2-1.8B-UD-Q4_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
Hy-MT2-1.8B-UD-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
-
Hy-MT2-1.8B-
|
|
|
|
|
|
| 38 |
Hy-MT2-1.8B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
Hy-MT2-1.8B-UD-Q4_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
Hy-MT2-1.8B-UD-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Hy-MT2-1.8B-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Hy-MT2-1.8B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
Hy-MT2-1.8B-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fed671df49936c64d0f655a73954447c877b1ec282863f50a6fff41836849aa4
|
| 3 |
+
size 1298756576
|