Text Generation
GGUF
English
Chinese
math
quantized
GGUF
imatrix
quantization
imat
static
conversational
Instructions to use legraphista/internlm2-math-plus-20b-IMat-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use legraphista/internlm2-math-plus-20b-IMat-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="legraphista/internlm2-math-plus-20b-IMat-GGUF", filename="internlm2-math-plus-20b.BF16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use legraphista/internlm2-math-plus-20b-IMat-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: llama-cli -hf legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: llama-cli -hf legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S
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 legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S
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 legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S
Use Docker
docker model run hf.co/legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S
- LM Studio
- Jan
- vLLM
How to use legraphista/internlm2-math-plus-20b-IMat-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "legraphista/internlm2-math-plus-20b-IMat-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "legraphista/internlm2-math-plus-20b-IMat-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S
- Ollama
How to use legraphista/internlm2-math-plus-20b-IMat-GGUF with Ollama:
ollama run hf.co/legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S
- Unsloth Studio
How to use legraphista/internlm2-math-plus-20b-IMat-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 legraphista/internlm2-math-plus-20b-IMat-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 legraphista/internlm2-math-plus-20b-IMat-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for legraphista/internlm2-math-plus-20b-IMat-GGUF to start chatting
- Docker Model Runner
How to use legraphista/internlm2-math-plus-20b-IMat-GGUF with Docker Model Runner:
docker model run hf.co/legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S
- Lemonade
How to use legraphista/internlm2-math-plus-20b-IMat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull legraphista/internlm2-math-plus-20b-IMat-GGUF:Q4_K_S
Run and chat with the model
lemonade run user.internlm2-math-plus-20b-IMat-GGUF-Q4_K_S
List all available models
lemonade list
Ctrl+K
- 3.35 kB
- 10.1 kB
- 10.2 MB xet
- 419 kB
- 11.9 kB
- 39.7 GB xet
- 39.7 GB xet
- 4.92 GB xet
- 4.54 GB xet
- 6.97 GB xet
- 6.47 GB xet
- 6.1 GB xet
- 5.54 GB xet
- 9.12 GB xet
- 8.8 GB xet
- 8.36 GB xet
- 7.81 GB xet
- 11.4 GB xet
- 10.8 GB xet
- 7.55 GB xet
- 7.01 GB xet
- 9.72 GB xet
- 10.6 GB xet
- 8.76 GB xet
- 12 GB xet
- 11.4 GB xet
- 14.1 GB xet
- 13.7 GB xet
- 16.3 GB xet
- 21.1 GB xet