Text Generation
Safetensors
GGUF
English
mamba
neuralai
ssm
state-space-model
causal-lm
mambapy
fine-tuned
local-ai
assistant
conversational
Instructions to use Subject-Emu-5259/NeuralAI-Mamba-K1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Subject-Emu-5259/NeuralAI-Mamba-K1 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 Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M # Run inference directly in the terminal: llama cli -hf Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M # Run inference directly in the terminal: llama cli -hf Subject-Emu-5259/NeuralAI-Mamba-K1: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 Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Subject-Emu-5259/NeuralAI-Mamba-K1: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 Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M
Use Docker
docker model run hf.co/Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Subject-Emu-5259/NeuralAI-Mamba-K1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Subject-Emu-5259/NeuralAI-Mamba-K1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Subject-Emu-5259/NeuralAI-Mamba-K1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M
- Ollama
How to use Subject-Emu-5259/NeuralAI-Mamba-K1 with Ollama:
ollama run hf.co/Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M
- Unsloth Studio
How to use Subject-Emu-5259/NeuralAI-Mamba-K1 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 Subject-Emu-5259/NeuralAI-Mamba-K1 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 Subject-Emu-5259/NeuralAI-Mamba-K1 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Subject-Emu-5259/NeuralAI-Mamba-K1 to start chatting
- Docker Model Runner
How to use Subject-Emu-5259/NeuralAI-Mamba-K1 with Docker Model Runner:
docker model run hf.co/Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M
- Lemonade
How to use Subject-Emu-5259/NeuralAI-Mamba-K1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Subject-Emu-5259/NeuralAI-Mamba-K1:Q4_K_M
Run and chat with the model
lemonade run user.NeuralAI-Mamba-K1-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload config.json with huggingface_hub
Browse files- config.json +42 -0
config.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"MambaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"bos_token_id": 0,
|
| 6 |
+
"conv_kernel": 4,
|
| 7 |
+
"d_inner": 1536,
|
| 8 |
+
"d_model": 768,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"eos_token_id": 0,
|
| 11 |
+
"expand": 2,
|
| 12 |
+
"fused_add_norm": true,
|
| 13 |
+
"hidden_act": "silu",
|
| 14 |
+
"hidden_size": 768,
|
| 15 |
+
"initializer_range": 0.1,
|
| 16 |
+
"intermediate_size": 1536,
|
| 17 |
+
"layer_norm_epsilon": 1e-05,
|
| 18 |
+
"model_type": "mamba",
|
| 19 |
+
"n_layer": 24,
|
| 20 |
+
"num_hidden_layers": 24,
|
| 21 |
+
"pad_token_id": 0,
|
| 22 |
+
"pad_vocab_size_multiple": 8,
|
| 23 |
+
"rescale_prenorm_residual": false,
|
| 24 |
+
"residual_in_fp32": true,
|
| 25 |
+
"rms_norm": true,
|
| 26 |
+
"ssm_cfg": {},
|
| 27 |
+
"state_size": 16,
|
| 28 |
+
"tie_word_embeddings": true,
|
| 29 |
+
"time_step_floor": 0.0001,
|
| 30 |
+
"time_step_init_scheme": "random",
|
| 31 |
+
"time_step_max": 0.1,
|
| 32 |
+
"time_step_min": 0.001,
|
| 33 |
+
"time_step_rank": 48,
|
| 34 |
+
"time_step_scale": 1.0,
|
| 35 |
+
"transformers_version": "5.5.4",
|
| 36 |
+
"use_associative_scan": true,
|
| 37 |
+
"use_bias": false,
|
| 38 |
+
"use_cache": true,
|
| 39 |
+
"use_conv_bias": true,
|
| 40 |
+
"use_mambapy": false,
|
| 41 |
+
"vocab_size": 50280
|
| 42 |
+
}
|