Instructions to use dreeven/all_format with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dreeven/all_format with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="dreeven/all_format")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("dreeven/all_format") model = AutoModelForMultimodalLM.from_pretrained("dreeven/all_format") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dreeven/all_format with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dreeven/all_format" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dreeven/all_format", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dreeven/all_format
- SGLang
How to use dreeven/all_format 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 "dreeven/all_format" \ --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": "dreeven/all_format", "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 "dreeven/all_format" \ --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": "dreeven/all_format", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use dreeven/all_format with Docker Model Runner:
docker model run hf.co/dreeven/all_format
Training in progress, epoch 1
Browse files
config.json
CHANGED
|
@@ -50,7 +50,7 @@
|
|
| 50 |
"LABEL_1": 1
|
| 51 |
},
|
| 52 |
"length_penalty": 1.0,
|
| 53 |
-
"max_length":
|
| 54 |
"max_position_embeddings": 1536,
|
| 55 |
"min_length": 0,
|
| 56 |
"model_type": "mbart",
|
|
@@ -87,7 +87,7 @@
|
|
| 87 |
"typical_p": 1.0,
|
| 88 |
"use_bfloat16": false,
|
| 89 |
"use_cache": true,
|
| 90 |
-
"vocab_size":
|
| 91 |
},
|
| 92 |
"decoder_start_token_id": 0,
|
| 93 |
"encoder": {
|
|
@@ -126,8 +126,8 @@
|
|
| 126 |
"1": "LABEL_1"
|
| 127 |
},
|
| 128 |
"image_size": [
|
| 129 |
-
|
| 130 |
-
|
| 131 |
],
|
| 132 |
"initializer_range": 0.02,
|
| 133 |
"is_decoder": false,
|
|
|
|
| 50 |
"LABEL_1": 1
|
| 51 |
},
|
| 52 |
"length_penalty": 1.0,
|
| 53 |
+
"max_length": 760,
|
| 54 |
"max_position_embeddings": 1536,
|
| 55 |
"min_length": 0,
|
| 56 |
"model_type": "mbart",
|
|
|
|
| 87 |
"typical_p": 1.0,
|
| 88 |
"use_bfloat16": false,
|
| 89 |
"use_cache": true,
|
| 90 |
+
"vocab_size": 57545
|
| 91 |
},
|
| 92 |
"decoder_start_token_id": 0,
|
| 93 |
"encoder": {
|
|
|
|
| 126 |
"1": "LABEL_1"
|
| 127 |
},
|
| 128 |
"image_size": [
|
| 129 |
+
1280,
|
| 130 |
+
960
|
| 131 |
],
|
| 132 |
"initializer_range": 0.02,
|
| 133 |
"is_decoder": false,
|
pytorch_model.bin
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:7a9ddf8fdd3c6fa704767b050f07f14b6ccc4dd38f7a0c497cbdaaf0a6d10e0b
|
| 3 |
+
size 809260825
|
runs/Apr30_13-49-51_6e4478730051/1682862775.7609816/events.out.tfevents.1682862775.6e4478730051.422.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9581fe029f26c5bbfb821311194ca3db0ecb217f17f9293dba13faf9025ea3ca
|
| 3 |
+
size 6143
|
runs/Apr30_13-49-51_6e4478730051/events.out.tfevents.1682862775.6e4478730051.422.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee6eacb64a5b46d30f2eb278edded1adcff109e52d47e85cd6dacb326cc482ff
|
| 3 |
+
size 8829
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4091
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de6098afbef708607ef679c5f10076c933d4a2cf2fcbc903a64db656b528a741
|
| 3 |
size 4091
|