Instructions to use saujasv/multimodal-cad-starcoder-init with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saujasv/multimodal-cad-starcoder-init with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="saujasv/multimodal-cad-starcoder-init")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("saujasv/multimodal-cad-starcoder-init") model = AutoModelForCausalLM.from_pretrained("saujasv/multimodal-cad-starcoder-init") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use saujasv/multimodal-cad-starcoder-init with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "saujasv/multimodal-cad-starcoder-init" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saujasv/multimodal-cad-starcoder-init", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/saujasv/multimodal-cad-starcoder-init
- SGLang
How to use saujasv/multimodal-cad-starcoder-init 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 "saujasv/multimodal-cad-starcoder-init" \ --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": "saujasv/multimodal-cad-starcoder-init", "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 "saujasv/multimodal-cad-starcoder-init" \ --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": "saujasv/multimodal-cad-starcoder-init", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use saujasv/multimodal-cad-starcoder-init with Docker Model Runner:
docker model run hf.co/saujasv/multimodal-cad-starcoder-init
Upload MultimodalStarcoder2ForCausalLM
Browse files- config.json +1 -1
- model-00001-of-00002.safetensors +2 -2
- model-00002-of-00002.safetensors +1 -1
- model.safetensors.index.json +1 -1
config.json
CHANGED
|
@@ -35,5 +35,5 @@
|
|
| 35 |
"transformers_version": "4.42.3",
|
| 36 |
"use_bias": true,
|
| 37 |
"use_cache": true,
|
| 38 |
-
"vocab_size":
|
| 39 |
}
|
|
|
|
| 35 |
"transformers_version": "4.42.3",
|
| 36 |
"use_bias": true,
|
| 37 |
"use_cache": true,
|
| 38 |
+
"vocab_size": 49156
|
| 39 |
}
|
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28e8736668110c7af6f354cab3061812418ac89879616b0255a8ce87469831bd
|
| 3 |
+
size 4968839504
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1129743280
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da3a2a7b7b3a18dcb748d2faf98f8d6a0fa735ea1cda368b47bca0d2d17a7608
|
| 3 |
size 1129743280
|
model.safetensors.index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
-
"total_size":
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
"model.embed_tokens.weight": "model-00001-of-00002.safetensors",
|
|
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
+
"total_size": 6098528256
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
"model.embed_tokens.weight": "model-00001-of-00002.safetensors",
|