Instructions to use EdwardXu/git-base-pokemon with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EdwardXu/git-base-pokemon with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="EdwardXu/git-base-pokemon")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("EdwardXu/git-base-pokemon") model = AutoModelForImageTextToText.from_pretrained("EdwardXu/git-base-pokemon") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use EdwardXu/git-base-pokemon with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EdwardXu/git-base-pokemon" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EdwardXu/git-base-pokemon", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EdwardXu/git-base-pokemon
- SGLang
How to use EdwardXu/git-base-pokemon 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 "EdwardXu/git-base-pokemon" \ --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": "EdwardXu/git-base-pokemon", "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 "EdwardXu/git-base-pokemon" \ --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": "EdwardXu/git-base-pokemon", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EdwardXu/git-base-pokemon with Docker Model Runner:
docker model run hf.co/EdwardXu/git-base-pokemon
Training in progress, step 50
Browse files
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 706516040
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecb36b69b17f8daac4f4b2ed9a0bdb6f2f5a17a9e18d41fee037b1ecd89eb0ac
|
| 3 |
size 706516040
|
runs/Feb14_05-41-58_2dd332440885/events.out.tfevents.1707889321.2dd332440885.753.0
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:32b469b523793855ac58ee0fca5846b230db19bc3150b2b7ed8c206dee6869b1
|
| 3 |
+
size 5395
|
runs/Feb14_05-55-20_2dd332440885/events.out.tfevents.1707890122.2dd332440885.4856.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df5d3bf572fbefd89db4cc6b18775732046f49d3820aa0d772f107d4f242f04b
|
| 3 |
+
size 5047
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4728
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c22874db5339b6b458d8d64633c3e582bda7abe3790b4d77336134ff89d50b56
|
| 3 |
size 4728
|