Instructions to use Plaaasma/gerald-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Plaaasma/gerald-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Plaaasma/gerald-model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Plaaasma/gerald-model") model = AutoModelForCausalLM.from_pretrained("Plaaasma/gerald-model") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Plaaasma/gerald-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Plaaasma/gerald-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Plaaasma/gerald-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Plaaasma/gerald-model
- SGLang
How to use Plaaasma/gerald-model 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 "Plaaasma/gerald-model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Plaaasma/gerald-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Plaaasma/gerald-model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Plaaasma/gerald-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Plaaasma/gerald-model with Docker Model Runner:
docker model run hf.co/Plaaasma/gerald-model
Upload 8 files
Browse files- optimizer.pt +1 -1
- pytorch_model.bin +1 -1
- rng_state.pth +1 -1
- scheduler.pt +1 -1
- trainer_state.json +39 -3
optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6192502837
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c427e293dfb675cd0055b4b8837887686d3c202f2c4b1c3c08cd0bcd69883cab
|
| 3 |
size 6192502837
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3134031497
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5075518047ef7374143dc014b6c925009e3aa96d714cacbb77e66c8aae26e3f
|
| 3 |
size 3134031497
|
rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14503
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbe49cba5b4bbea74ca7ad0a69f65d2951ebd36b2fdee0ef08b9ae2994877aae
|
| 3 |
size 14503
|
scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 623
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba3a5d1c69a9427a53e2ab87233696d8956a8613a03782eb9c2342a7fb49829d
|
| 3 |
size 623
|
trainer_state.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
-
"epoch":
|
| 5 |
-
"global_step":
|
| 6 |
"is_hyper_param_search": false,
|
| 7 |
"is_local_process_zero": true,
|
| 8 |
"is_world_process_zero": true,
|
|
@@ -48,11 +48,47 @@
|
|
| 48 |
"learning_rate": 4.887676508344031e-05,
|
| 49 |
"loss": 0.1991,
|
| 50 |
"step": 3500
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
}
|
| 52 |
],
|
| 53 |
"max_steps": 155800,
|
| 54 |
"num_train_epochs": 100,
|
| 55 |
-
"total_flos":
|
| 56 |
"trial_name": null,
|
| 57 |
"trial_params": null
|
| 58 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 4.170676932948348,
|
| 5 |
+
"global_step": 6500,
|
| 6 |
"is_hyper_param_search": false,
|
| 7 |
"is_local_process_zero": true,
|
| 8 |
"is_world_process_zero": true,
|
|
|
|
| 48 |
"learning_rate": 4.887676508344031e-05,
|
| 49 |
"loss": 0.1991,
|
| 50 |
"step": 3500
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"epoch": 2.57,
|
| 54 |
+
"learning_rate": 4.871630295250321e-05,
|
| 55 |
+
"loss": 0.1887,
|
| 56 |
+
"step": 4000
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"epoch": 2.89,
|
| 60 |
+
"learning_rate": 4.855584082156611e-05,
|
| 61 |
+
"loss": 0.1911,
|
| 62 |
+
"step": 4500
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"epoch": 3.21,
|
| 66 |
+
"learning_rate": 4.839537869062901e-05,
|
| 67 |
+
"loss": 0.1662,
|
| 68 |
+
"step": 5000
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"epoch": 3.53,
|
| 72 |
+
"learning_rate": 4.823491655969192e-05,
|
| 73 |
+
"loss": 0.1579,
|
| 74 |
+
"step": 5500
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"epoch": 3.85,
|
| 78 |
+
"learning_rate": 4.807445442875482e-05,
|
| 79 |
+
"loss": 0.1623,
|
| 80 |
+
"step": 6000
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"epoch": 4.17,
|
| 84 |
+
"learning_rate": 4.791399229781772e-05,
|
| 85 |
+
"loss": 0.1452,
|
| 86 |
+
"step": 6500
|
| 87 |
}
|
| 88 |
],
|
| 89 |
"max_steps": 155800,
|
| 90 |
"num_train_epochs": 100,
|
| 91 |
+
"total_flos": 2.260838219092992e+17,
|
| 92 |
"trial_name": null,
|
| 93 |
"trial_params": null
|
| 94 |
}
|