Instructions to use appvoid/arco-2-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use appvoid/arco-2-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="appvoid/arco-2-instruct")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("appvoid/arco-2-instruct") model = AutoModelForCausalLM.from_pretrained("appvoid/arco-2-instruct") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use appvoid/arco-2-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "appvoid/arco-2-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "appvoid/arco-2-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/appvoid/arco-2-instruct
- SGLang
How to use appvoid/arco-2-instruct 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 "appvoid/arco-2-instruct" \ --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": "appvoid/arco-2-instruct", "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 "appvoid/arco-2-instruct" \ --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": "appvoid/arco-2-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use appvoid/arco-2-instruct with Docker Model Runner:
docker model run hf.co/appvoid/arco-2-instruct
Update config.json
Browse files- config.json +3 -8
config.json
CHANGED
|
@@ -7,27 +7,22 @@
|
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"bos_token_id": 1,
|
| 9 |
"eos_token_id": 2,
|
| 10 |
-
"head_dim": 96,
|
| 11 |
"hidden_act": "silu",
|
| 12 |
"hidden_size": 1536,
|
| 13 |
"initializer_range": 0.02,
|
| 14 |
"intermediate_size": 4096,
|
| 15 |
"max_position_embeddings": 8192,
|
| 16 |
-
"mlp_bias": false,
|
| 17 |
"model_type": "llama",
|
| 18 |
"num_attention_heads": 16,
|
| 19 |
"num_hidden_layers": 16,
|
| 20 |
"num_key_value_heads": 8,
|
| 21 |
"pad_token_id": 0,
|
| 22 |
-
"pretraining_tp": 1,
|
| 23 |
"rms_norm_eps": 1e-05,
|
| 24 |
-
"rope_scaling": null,
|
| 25 |
"rope_theta": 100000,
|
| 26 |
"sliding_window": null,
|
| 27 |
"tie_word_embeddings": false,
|
| 28 |
-
"torch_dtype": "
|
| 29 |
-
"transformers_version": "4.
|
| 30 |
-
"unsloth_version": "2024.7",
|
| 31 |
"use_cache": true,
|
| 32 |
"vocab_size": 32000
|
| 33 |
-
}
|
|
|
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"bos_token_id": 1,
|
| 9 |
"eos_token_id": 2,
|
|
|
|
| 10 |
"hidden_act": "silu",
|
| 11 |
"hidden_size": 1536,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
"intermediate_size": 4096,
|
| 14 |
"max_position_embeddings": 8192,
|
|
|
|
| 15 |
"model_type": "llama",
|
| 16 |
"num_attention_heads": 16,
|
| 17 |
"num_hidden_layers": 16,
|
| 18 |
"num_key_value_heads": 8,
|
| 19 |
"pad_token_id": 0,
|
|
|
|
| 20 |
"rms_norm_eps": 1e-05,
|
|
|
|
| 21 |
"rope_theta": 100000,
|
| 22 |
"sliding_window": null,
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
+
"torch_dtype": "bfloat16",
|
| 25 |
+
"transformers_version": "4.42.3",
|
|
|
|
| 26 |
"use_cache": true,
|
| 27 |
"vocab_size": 32000
|
| 28 |
+
}
|