Instructions to use MoonstoneF/kosm-checkpoint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MoonstoneF/kosm-checkpoint with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="MoonstoneF/kosm-checkpoint")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("MoonstoneF/kosm-checkpoint") model = AutoModelForMultimodalLM.from_pretrained("MoonstoneF/kosm-checkpoint", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MoonstoneF/kosm-checkpoint with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MoonstoneF/kosm-checkpoint" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MoonstoneF/kosm-checkpoint", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MoonstoneF/kosm-checkpoint
- SGLang
How to use MoonstoneF/kosm-checkpoint 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 "MoonstoneF/kosm-checkpoint" \ --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": "MoonstoneF/kosm-checkpoint", "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 "MoonstoneF/kosm-checkpoint" \ --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": "MoonstoneF/kosm-checkpoint", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MoonstoneF/kosm-checkpoint with Docker Model Runner:
docker model run hf.co/MoonstoneF/kosm-checkpoint
Trained on ALL without hyperparameter tuning
Browse files- README.md +11 -11
- model-00001-of-00002.safetensors +1 -1
- model-00002-of-00002.safetensors +1 -1
README.md
CHANGED
|
@@ -15,7 +15,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [microsoft/kosmos-2-patch14-224](https://huggingface.co/microsoft/kosmos-2-patch14-224) on the None dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
-
- Loss: 0.
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
|
@@ -49,16 +49,16 @@ The following hyperparameters were used during training:
|
|
| 49 |
|
| 50 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 51 |
|:-------------:|:------:|:----:|:---------------:|
|
| 52 |
-
|
|
| 53 |
-
| 0.
|
| 54 |
-
| 0.
|
| 55 |
-
| 0.
|
| 56 |
-
| 0.
|
| 57 |
-
| 0.
|
| 58 |
-
| 0.
|
| 59 |
-
| 0.
|
| 60 |
-
| 0.
|
| 61 |
-
| 0.
|
| 62 |
|
| 63 |
|
| 64 |
### Framework versions
|
|
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [microsoft/kosmos-2-patch14-224](https://huggingface.co/microsoft/kosmos-2-patch14-224) on the None dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
+
- Loss: 0.0873
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
|
|
|
| 49 |
|
| 50 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 51 |
|:-------------:|:------:|:----:|:---------------:|
|
| 52 |
+
| 0.1715 | 0.0160 | 100 | 0.1546 |
|
| 53 |
+
| 0.1624 | 0.0319 | 200 | 0.1357 |
|
| 54 |
+
| 0.1415 | 0.0479 | 300 | 0.1256 |
|
| 55 |
+
| 0.1295 | 0.0638 | 400 | 0.1157 |
|
| 56 |
+
| 0.1226 | 0.0798 | 500 | 0.1068 |
|
| 57 |
+
| 0.1119 | 0.0957 | 600 | 0.1007 |
|
| 58 |
+
| 0.1067 | 0.1117 | 700 | 0.0980 |
|
| 59 |
+
| 0.1032 | 0.1276 | 800 | 0.0914 |
|
| 60 |
+
| 0.099 | 0.1436 | 900 | 0.0882 |
|
| 61 |
+
| 0.0965 | 0.1596 | 1000 | 0.0873 |
|
| 62 |
|
| 63 |
|
| 64 |
### Framework versions
|
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999738624
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4932181b0cce09fc255d8412690b1771822e380f2167945124aaa57312ff3070
|
| 3 |
size 4999738624
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1658313704
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20e10a9551a9a505a2df622decc92c2f6c23328adda1c64ad6c5cd92fd033f6c
|
| 3 |
size 1658313704
|