Text Generation
Transformers
Safetensors
GGUF
English
multilingual
deepnarra_narra
deepnarra
narra
28.5m
v1.0
bedrock-tree
128k-context-locked
gla-recurrence
lyapunov-stability
h-moe
bitnet-b158
tq1_0
Instructions to use DeepNarra/Narra with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepNarra/Narra with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DeepNarra/Narra")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("DeepNarra/Narra", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use DeepNarra/Narra 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 DeepNarra/Narra:TQ1_0 # Run inference directly in the terminal: llama cli -hf DeepNarra/Narra:TQ1_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf DeepNarra/Narra:TQ1_0 # Run inference directly in the terminal: llama cli -hf DeepNarra/Narra:TQ1_0
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 DeepNarra/Narra:TQ1_0 # Run inference directly in the terminal: ./llama-cli -hf DeepNarra/Narra:TQ1_0
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 DeepNarra/Narra:TQ1_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf DeepNarra/Narra:TQ1_0
Use Docker
docker model run hf.co/DeepNarra/Narra:TQ1_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use DeepNarra/Narra with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DeepNarra/Narra" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepNarra/Narra", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DeepNarra/Narra:TQ1_0
- SGLang
How to use DeepNarra/Narra 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 "DeepNarra/Narra" \ --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": "DeepNarra/Narra", "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 "DeepNarra/Narra" \ --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": "DeepNarra/Narra", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use DeepNarra/Narra with Ollama:
ollama run hf.co/DeepNarra/Narra:TQ1_0
- Unsloth Desktop
- Docker Model Runner
How to use DeepNarra/Narra with Docker Model Runner:
docker model run hf.co/DeepNarra/Narra:TQ1_0
- Lemonade
How to use DeepNarra/Narra with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull DeepNarra/Narra:TQ1_0
Run and chat with the model
lemonade run user.Narra-TQ1_0
List all available models
lemonade list
- Atomic Chat
Download config.json from DeepNarra/Narra: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/DeepNarra/Narra/resolve/main/config.json
- Command line
-
hf download hf://DeepNarra/Narra/config.json
-
curl -L -o config.json https://huggingface.co/DeepNarra/Narra/resolve/main/config.json
1 kB
| { | |
| "_name_or_path": "DeepNarra/Narra", | |
| "model_name": "DeepNarra Narra 1.0 (758M-A100M)", | |
| "model_version": "1.0.0", | |
| "architectures": [ | |
| "DeepNarraNarraHMoEForCausalLM" | |
| ], | |
| "model_type": "deepnarra_narra", | |
| "creator": "DeepNarra", | |
| "huggingface_url": "https://huggingface.co/DeepNarra/Narra", | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.45.0", | |
| "vocab_size": 48760, | |
| "hidden_size": 768, | |
| "intermediate_size": 2048, | |
| "num_hidden_layers": 8, | |
| "num_attention_heads": 8, | |
| "num_key_value_heads": 4, | |
| "max_position_embeddings": 131072, | |
| "context_boundary_locked": 131072, | |
| "macro_engines": 23, | |
| "sub_experts_per_engine": 4, | |
| "total_experts": 92, | |
| "active_experts_per_token": 3, | |
| "shared_expert": true, | |
| "recurrent_attention": "ChunkwiseGatedLinearAttention", | |
| "lyapunov_energy_bound": 100.0, | |
| "recurrent_state_bytes_per_rec": 6.0, | |
| "bitnet_b158_quantization": "TQ1_0", | |
| "total_parameters": "758.8M", | |
| "active_parameters": "100M" | |
| } |