Text Generation
Transformers
GGUF
PyTorch
mistral
quantized
2-bit
3-bit
4-bit precision
5-bit
6-bit
8-bit precision
GGUF
llama
Long Context
en
zh
THUDM/LongAlign-10k
arxiv:2401.18058
text-generation-inference
Instructions to use MaziyarPanahi/LongAlign-13B-64k-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaziyarPanahi/LongAlign-13B-64k-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MaziyarPanahi/LongAlign-13B-64k-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MaziyarPanahi/LongAlign-13B-64k-GGUF", dtype="auto") - llama-cpp-python
How to use MaziyarPanahi/LongAlign-13B-64k-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="MaziyarPanahi/LongAlign-13B-64k-GGUF", filename="LongAlign-13B-64k.Q2_K.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 MaziyarPanahi/LongAlign-13B-64k-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf MaziyarPanahi/LongAlign-13B-64k-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf MaziyarPanahi/LongAlign-13B-64k-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 MaziyarPanahi/LongAlign-13B-64k-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf MaziyarPanahi/LongAlign-13B-64k-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 MaziyarPanahi/LongAlign-13B-64k-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf MaziyarPanahi/LongAlign-13B-64k-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 MaziyarPanahi/LongAlign-13B-64k-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf MaziyarPanahi/LongAlign-13B-64k-GGUF:Q4_K_M
Use Docker
docker model run hf.co/MaziyarPanahi/LongAlign-13B-64k-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use MaziyarPanahi/LongAlign-13B-64k-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/LongAlign-13B-64k-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/LongAlign-13B-64k-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MaziyarPanahi/LongAlign-13B-64k-GGUF:Q4_K_M
- SGLang
How to use MaziyarPanahi/LongAlign-13B-64k-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MaziyarPanahi/LongAlign-13B-64k-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/LongAlign-13B-64k-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MaziyarPanahi/LongAlign-13B-64k-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/LongAlign-13B-64k-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use MaziyarPanahi/LongAlign-13B-64k-GGUF with Ollama:
ollama run hf.co/MaziyarPanahi/LongAlign-13B-64k-GGUF:Q4_K_M
- Unsloth Studio
How to use MaziyarPanahi/LongAlign-13B-64k-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 MaziyarPanahi/LongAlign-13B-64k-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 MaziyarPanahi/LongAlign-13B-64k-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MaziyarPanahi/LongAlign-13B-64k-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use MaziyarPanahi/LongAlign-13B-64k-GGUF with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/LongAlign-13B-64k-GGUF:Q4_K_M
- Lemonade
How to use MaziyarPanahi/LongAlign-13B-64k-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MaziyarPanahi/LongAlign-13B-64k-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.LongAlign-13B-64k-GGUF-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- LongAlign-13B-64k.Q2_K.gguf +1 -1
- LongAlign-13B-64k.Q3_K_L.gguf +1 -1
- LongAlign-13B-64k.Q3_K_M.gguf +1 -1
- LongAlign-13B-64k.Q3_K_S.gguf +1 -1
- LongAlign-13B-64k.Q4_K_M.gguf +1 -1
- LongAlign-13B-64k.Q4_K_S.gguf +1 -1
- LongAlign-13B-64k.Q5_K_M.gguf +1 -1
- LongAlign-13B-64k.Q5_K_S.gguf +1 -1
- LongAlign-13B-64k.Q6_K.gguf +1 -1
- LongAlign-13B-64k.Q8_0.gguf +1 -1
- LongAlign-13B-64k.fp16.gguf +1 -1
LongAlign-13B-64k.Q2_K.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4855782432
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac08c0c57fce1504908f25059eb09542367b97b829cbc54f408637d13bda220b
|
| 3 |
size 4855782432
|
LongAlign-13B-64k.Q3_K_L.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6931205152
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b66b1df75dea8a006720726203ecf0f48dfcef0d56243af36af85d2fd6652506
|
| 3 |
size 6931205152
|
LongAlign-13B-64k.Q3_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6339415072
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32b168f2837c786cb5e970e52c967d5286a9a359ef459cf1a91aff7c95355746
|
| 3 |
size 6339415072
|
LongAlign-13B-64k.Q3_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5660625952
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05e18e87a906ad7a19b9ec152e211e3094b1545c64a54041ee5327be8c22611a
|
| 3 |
size 5660625952
|
LongAlign-13B-64k.Q4_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7867776032
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a868dd29db120b9016a2fbfc5681abccae1ea4b5f038519ef19f0edd7b6e9dd8
|
| 3 |
size 7867776032
|
LongAlign-13B-64k.Q4_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 7424998432
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6860536d9d4eb27ac9f199cd4e389c20eef6aed68008b2f6425a8b855ff88b4
|
| 3 |
size 7424998432
|
LongAlign-13B-64k.Q5_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 9231907872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3f6a4f0e289ae0bb3dcfc6817b08dff42f13a393dfcbb8197885010c221107d
|
| 3 |
size 9231907872
|
LongAlign-13B-64k.Q5_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 8974269472
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1bf90094e57955508ba32c9ced00803e5cfcb297bded545cd9a0ed406b9d9f2
|
| 3 |
size 8974269472
|
LongAlign-13B-64k.Q6_K.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 10681297952
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e3c33782d3f68a81692cc0654227fb9de164cefd1562c71c82f781735420220b
|
| 3 |
size 10681297952
|
LongAlign-13B-64k.Q8_0.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 13834112032
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38fc0b3a924660013e68319351ac88361e9eaf09c5f8ea84acf677c268cfda57
|
| 3 |
size 13834112032
|
LongAlign-13B-64k.fp16.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 26038553600
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e2243c717909baf60a85a5eea320f24512967c19789362028a9ff6632c8c02a
|
| 3 |
size 26038553600
|