Instructions to use Multi-Domain-Expert-Learning/draco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Multi-Domain-Expert-Learning/draco with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Multi-Domain-Expert-Learning/draco")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Multi-Domain-Expert-Learning/draco") model = AutoModelForCausalLM.from_pretrained("Multi-Domain-Expert-Learning/draco") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Multi-Domain-Expert-Learning/draco with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Multi-Domain-Expert-Learning/draco" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Multi-Domain-Expert-Learning/draco", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Multi-Domain-Expert-Learning/draco
- SGLang
How to use Multi-Domain-Expert-Learning/draco 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 "Multi-Domain-Expert-Learning/draco" \ --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": "Multi-Domain-Expert-Learning/draco", "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 "Multi-Domain-Expert-Learning/draco" \ --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": "Multi-Domain-Expert-Learning/draco", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Multi-Domain-Expert-Learning/draco with Docker Model Runner:
docker model run hf.co/Multi-Domain-Expert-Learning/draco
Ontocord.AI commited on
Commit ·
e710939
1
Parent(s): fd6cf0b
Upload GPTBigCodeForCausalLM
Browse files- config.json +1 -1
- generation_config.json +1 -1
- pytorch_model-00001-of-00004.bin +3 -0
- pytorch_model-00002-of-00004.bin +3 -0
- pytorch_model-00003-of-00004.bin +3 -0
- pytorch_model-00004-of-00004.bin +3 -0
- pytorch_model.bin.index.json +0 -0
config.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
| 32 |
"summary_type": "cls_index",
|
| 33 |
"summary_use_proj": true,
|
| 34 |
"torch_dtype": "bfloat16",
|
| 35 |
-
"transformers_version": "4.
|
| 36 |
"use_cache": true,
|
| 37 |
"validate_runner_input": true,
|
| 38 |
"vocab_size": 49156
|
|
|
|
| 32 |
"summary_type": "cls_index",
|
| 33 |
"summary_use_proj": true,
|
| 34 |
"torch_dtype": "bfloat16",
|
| 35 |
+
"transformers_version": "4.31.0.dev0",
|
| 36 |
"use_cache": true,
|
| 37 |
"validate_runner_input": true,
|
| 38 |
"vocab_size": 49156
|
generation_config.json
CHANGED
|
@@ -2,5 +2,5 @@
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 0,
|
| 4 |
"eos_token_id": 0,
|
| 5 |
-
"transformers_version": "4.
|
| 6 |
}
|
|
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 0,
|
| 4 |
"eos_token_id": 0,
|
| 5 |
+
"transformers_version": "4.31.0.dev0"
|
| 6 |
}
|
pytorch_model-00001-of-00004.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a36e348a4cf48d908158a9f0866644e8ae8dc7562e68f9a3f06671bb591ba31e
|
| 3 |
+
size 9958032181
|
pytorch_model-00002-of-00004.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31c8b9ecc8d6e0ebb1bdc4c48d5aa5d7432c31a520940f647c88e7d2534b6f04
|
| 3 |
+
size 9857381671
|
pytorch_model-00003-of-00004.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de4d9f7ff72f283a09c67389170d55ebb81a47800803a9eee92b263b43711523
|
| 3 |
+
size 9857381671
|
pytorch_model-00004-of-00004.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b87a6a6e42b1fc5dc11b76838f36eac0a360e8840872500218158380ac3883a
|
| 3 |
+
size 1362327955
|
pytorch_model.bin.index.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|