Text Generation
Transformers
Safetensors
English
mamba
state-space
cf-hot
behavioral-steering
proprioception
AI-safety
probes
falcon-mamba
Instructions to use LoganResearch/ARC-Mamba-7B-CF-HOT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LoganResearch/ARC-Mamba-7B-CF-HOT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LoganResearch/ARC-Mamba-7B-CF-HOT")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LoganResearch/ARC-Mamba-7B-CF-HOT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LoganResearch/ARC-Mamba-7B-CF-HOT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LoganResearch/ARC-Mamba-7B-CF-HOT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LoganResearch/ARC-Mamba-7B-CF-HOT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LoganResearch/ARC-Mamba-7B-CF-HOT
- SGLang
How to use LoganResearch/ARC-Mamba-7B-CF-HOT 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 "LoganResearch/ARC-Mamba-7B-CF-HOT" \ --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": "LoganResearch/ARC-Mamba-7B-CF-HOT", "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 "LoganResearch/ARC-Mamba-7B-CF-HOT" \ --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": "LoganResearch/ARC-Mamba-7B-CF-HOT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LoganResearch/ARC-Mamba-7B-CF-HOT with Docker Model Runner:
docker model run hf.co/LoganResearch/ARC-Mamba-7B-CF-HOT
Download base_model/config.json from LoganResearch/ARC-Mamba-7B-CF-HOT: direct link, hf CLI and curl.
- Browser
- Download file 870 Bytes
-
https://huggingface.co/LoganResearch/ARC-Mamba-7B-CF-HOT/resolve/main/base_model/config.json
- Command line
-
hf download hf://LoganResearch/ARC-Mamba-7B-CF-HOT/base_model/config.json
-
curl -L -o config.json https://huggingface.co/LoganResearch/ARC-Mamba-7B-CF-HOT/resolve/main/base_model/config.json
870 Bytes
| { | |
| "_name_or_path": "tiiuae/falcon-mamba-7b-chat", | |
| "architectures": [ | |
| "FalconMambaForCausalLM" | |
| ], | |
| "bos_token_id": 8, | |
| "conv_kernel": 4, | |
| "eos_token_id": 11, | |
| "expand": 16, | |
| "hidden_act": "silu", | |
| "hidden_size": 4096, | |
| "initializer_range": 0.1, | |
| "intermediate_size": 8192, | |
| "layer_norm_epsilon": 1e-05, | |
| "model_type": "falcon_mamba", | |
| "num_hidden_layers": 64, | |
| "pad_token_id": 0, | |
| "rescale_prenorm_residual": false, | |
| "residual_in_fp32": true, | |
| "state_size": 16, | |
| "tie_word_embeddings": false, | |
| "time_step_floor": 0.0001, | |
| "time_step_init_scheme": "random", | |
| "time_step_max": 0.1, | |
| "time_step_min": 0.001, | |
| "time_step_rank": 256, | |
| "time_step_scale": 1.0, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.44.0.dev0", | |
| "use_bias": false, | |
| "use_cache": true, | |
| "use_conv_bias": true, | |
| "use_mambapy": false, | |
| "vocab_size": 65024 | |
| } | |