Instructions to use mlsquare/mamba_pico_small_dt_proj with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlsquare/mamba_pico_small_dt_proj with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mlsquare/mamba_pico_small_dt_proj")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mlsquare/mamba_pico_small_dt_proj", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use mlsquare/mamba_pico_small_dt_proj with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mlsquare/mamba_pico_small_dt_proj" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mlsquare/mamba_pico_small_dt_proj", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mlsquare/mamba_pico_small_dt_proj
- SGLang
How to use mlsquare/mamba_pico_small_dt_proj 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 "mlsquare/mamba_pico_small_dt_proj" \ --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": "mlsquare/mamba_pico_small_dt_proj", "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 "mlsquare/mamba_pico_small_dt_proj" \ --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": "mlsquare/mamba_pico_small_dt_proj", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mlsquare/mamba_pico_small_dt_proj with Docker Model Runner:
docker model run hf.co/mlsquare/mamba_pico_small_dt_proj
Update adapter from client
Browse files- adapter_config.json +1 -0
- config.json +1 -1
adapter_config.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
| 9 |
"fan_in_fan_out": false,
|
| 10 |
"inference_mode": true,
|
| 11 |
"init_lora_weights": true,
|
|
|
|
| 12 |
"layers_pattern": null,
|
| 13 |
"layers_to_transform": null,
|
| 14 |
"loftq_config": {},
|
|
|
|
| 9 |
"fan_in_fan_out": false,
|
| 10 |
"inference_mode": true,
|
| 11 |
"init_lora_weights": true,
|
| 12 |
+
"layer_replication": null,
|
| 13 |
"layers_pattern": null,
|
| 14 |
"layers_to_transform": null,
|
| 15 |
"loftq_config": {},
|
config.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"username": "convolutionboi",
|
| 3 |
"fullname": "chaudhuri",
|
| 4 |
"org_id": "mlsquare",
|
| 5 |
-
"time": "2024-
|
| 6 |
"hf_model_path": "mlsquare/pico_seshu_test",
|
| 7 |
"hf_tokenizer_path": "google/byt5-large",
|
| 8 |
"target_modules": [
|
|
|
|
| 2 |
"username": "convolutionboi",
|
| 3 |
"fullname": "chaudhuri",
|
| 4 |
"org_id": "mlsquare",
|
| 5 |
+
"time": "2024-04-12 09:05:47",
|
| 6 |
"hf_model_path": "mlsquare/pico_seshu_test",
|
| 7 |
"hf_tokenizer_path": "google/byt5-large",
|
| 8 |
"target_modules": [
|