Instructions to use DuoNeural/InternLM3-8B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use DuoNeural/InternLM3-8B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="DuoNeural/InternLM3-8B-Instruct-GGUF", filename="InternLM3-8B-Instruct-IQ1_S.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 DuoNeural/InternLM3-8B-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf DuoNeural/InternLM3-8B-Instruct-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 DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf DuoNeural/InternLM3-8B-Instruct-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 DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf DuoNeural/InternLM3-8B-Instruct-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 DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use DuoNeural/InternLM3-8B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DuoNeural/InternLM3-8B-Instruct-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": "DuoNeural/InternLM3-8B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M
- Ollama
How to use DuoNeural/InternLM3-8B-Instruct-GGUF with Ollama:
ollama run hf.co/DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M
- Unsloth Studio
How to use DuoNeural/InternLM3-8B-Instruct-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 DuoNeural/InternLM3-8B-Instruct-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 DuoNeural/InternLM3-8B-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for DuoNeural/InternLM3-8B-Instruct-GGUF to start chatting
- Docker Model Runner
How to use DuoNeural/InternLM3-8B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use DuoNeural/InternLM3-8B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.InternLM3-8B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: internlm/internlm3-8b-instruct
|
| 4 |
+
tags:
|
| 5 |
+
- gguf
|
| 6 |
+
- quantized
|
| 7 |
+
- internlm
|
| 8 |
+
- text-generation
|
| 9 |
+
- long-context
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
- zh
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# InternLM3-8B-Instruct — GGUF Quants
|
| 17 |
+
|
| 18 |
+
Quantized GGUF versions of [internlm/internlm3-8b-instruct](https://huggingface.co/internlm/internlm3-8b-instruct) — Shanghai AI Lab's InternLM3 8B instruction-tuned model featuring a **1M token context window**, strong multilingual support (English + Chinese), and competitive performance across reasoning and coding benchmarks.
|
| 19 |
+
|
| 20 |
+
The 1M context window makes InternLM3-8B uniquely capable among sub-10B models for long-document tasks, RAG pipelines, and extended reasoning chains.
|
| 21 |
+
|
| 22 |
+
## Available Files
|
| 23 |
+
|
| 24 |
+
| File | Quant | Size | Use Case |
|
| 25 |
+
|------|-------|------|----------|
|
| 26 |
+
| `InternLM3-8B-Instruct-Q8_0.gguf` | Q8_0 | ~8.5GB | Maximum quality |
|
| 27 |
+
| `InternLM3-8B-Instruct-Q6_K.gguf` | Q6_K | ~6.6GB | Near-lossless |
|
| 28 |
+
| `InternLM3-8B-Instruct-Q5_K_M.gguf` | Q5_K_M | ~5.7GB | High quality |
|
| 29 |
+
| `InternLM3-8B-Instruct-Q4_K_M.gguf` | Q4_K_M | ~4.9GB | **Recommended default** |
|
| 30 |
+
| `InternLM3-8B-Instruct-Q3_K_M.gguf` | Q3_K_M | ~3.9GB | Low VRAM |
|
| 31 |
+
| `InternLM3-8B-Instruct-IQ4_XS.gguf` | IQ4_XS | ~4.3GB | Imatrix 4-bit |
|
| 32 |
+
| `InternLM3-8B-Instruct-IQ3_XXS.gguf` | IQ3_XXS | ~3.2GB | Imatrix 3-bit |
|
| 33 |
+
| `InternLM3-8B-Instruct-IQ2_M.gguf` | IQ2_M | ~2.8GB | Imatrix 2-bit |
|
| 34 |
+
| `InternLM3-8B-Instruct-IQ1_S.gguf` | IQ1_S | ~2.0GB | Extreme compression |
|
| 35 |
+
| `InternLM3-8B-Instruct-fp16.gguf` | FP16 | ~16.0GB | Full precision |
|
| 36 |
+
| `imatrix.dat` | — | — | Importance matrix |
|
| 37 |
+
|
| 38 |
+
## Usage
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
# llama.cpp
|
| 42 |
+
./llama-cli -m InternLM3-8B-Instruct-Q4_K_M.gguf \
|
| 43 |
+
--ctx-size 8192 -n 512 \
|
| 44 |
+
-p "<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n<|im_start|>user\nHello!<|im_end|>\n<|im_start|>assistant\n"
|
| 45 |
+
|
| 46 |
+
# Ollama
|
| 47 |
+
ollama run hf.co/DuoNeural/InternLM3-8B-Instruct-GGUF:Q4_K_M
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## About InternLM3-8B
|
| 51 |
+
|
| 52 |
+
- **Parameters**: 8B
|
| 53 |
+
- **Context**: 1M tokens (unique at this parameter scale)
|
| 54 |
+
- **Architecture**: Decoder-only transformer
|
| 55 |
+
- **Languages**: English, Chinese (multilingual)
|
| 56 |
+
- **Strengths**: Long-context reasoning, instruction following, coding, math
|
| 57 |
+
|
| 58 |
+
Notable for its extreme context length — 1M tokens in a sub-10B model is unmatched in the open-source landscape.
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
*Quantized by DuoNeural using llama.cpp on RTX 5090.*
|
| 63 |
+
|
| 64 |
+
---
|
| 65 |
+
|
| 66 |
+
## DuoNeural
|
| 67 |
+
|
| 68 |
+
**DuoNeural** is an open AI research lab — human + AI in collaboration.
|
| 69 |
+
|
| 70 |
+
| Platform | Link |
|
| 71 |
+
|----------|------|
|
| 72 |
+
| HuggingFace | [huggingface.co/DuoNeural](https://huggingface.co/DuoNeural) |
|
| 73 |
+
| Website | [duoneural.com](https://duoneural.com) |
|
| 74 |
+
| GitHub | [github.com/DuoNeural](https://github.com/DuoNeural) |
|
| 75 |
+
| X / Twitter | [@DuoNeural](https://x.com/DuoNeural) |
|
| 76 |
+
| Email | duoneural@proton.me |
|
| 77 |
+
| Newsletter | [duoneural.beehiiv.com](https://duoneural.beehiiv.com) |
|
| 78 |
+
| Support | [buymeacoffee.com/duoneural](https://buymeacoffee.com/duoneural) |
|
| 79 |
+
|
| 80 |
+
### DuoNeural Research Publications
|
| 81 |
+
|
| 82 |
+
| Title | DOI |
|
| 83 |
+
|-------|-----|
|
| 84 |
+
| [Nano-CTM: Ternary Continuous Thought Machines with Thought-Space Self-Prediction for Efficient Iterative Reasoning](https://doi.org/10.5281/zenodo.19775622) | [10.5281/zenodo.19775622](https://doi.org/10.5281/zenodo.19775622) |
|
| 85 |
+
| [Recurrence as World Model: CTM Learns Implicit Belief States in Partially Observable Physical Environments](https://doi.org/10.5281/zenodo.19810620) | [10.5281/zenodo.19810620](https://doi.org/10.5281/zenodo.19810620) |
|
| 86 |
+
| [Per-Object Slot Decomposition for Scalable Neural World Modeling: When Does Attention Beat Mean-Field?](https://doi.org/10.5281/zenodo.19846804) | [10.5281/zenodo.19846804](https://doi.org/10.5281/zenodo.19846804) |
|
| 87 |
+
| [The Dynamical Horizon Principle: CTM Gates Converge to the Predictability Limit of Dynamical Systems](https://doi.org/10.5281/zenodo.19952612) | [10.5281/zenodo.19952612](https://doi.org/10.5281/zenodo.19952612) |
|
| 88 |
+
|
| 89 |
+
*Open access, CC BY 4.0. Authored by Archon, Jesse Caldwell, Aura — DuoNeural.*
|