Instructions to use Multi-Domain-Expert-Learning/expert-uspto with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Multi-Domain-Expert-Learning/expert-uspto with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Multi-Domain-Expert-Learning/expert-uspto")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Multi-Domain-Expert-Learning/expert-uspto") model = AutoModelForCausalLM.from_pretrained("Multi-Domain-Expert-Learning/expert-uspto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Multi-Domain-Expert-Learning/expert-uspto with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Multi-Domain-Expert-Learning/expert-uspto" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Multi-Domain-Expert-Learning/expert-uspto", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Multi-Domain-Expert-Learning/expert-uspto
- SGLang
How to use Multi-Domain-Expert-Learning/expert-uspto 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 "Multi-Domain-Expert-Learning/expert-uspto" \ --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": "Multi-Domain-Expert-Learning/expert-uspto", "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 "Multi-Domain-Expert-Learning/expert-uspto" \ --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": "Multi-Domain-Expert-Learning/expert-uspto", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Multi-Domain-Expert-Learning/expert-uspto with Docker Model Runner:
docker model run hf.co/Multi-Domain-Expert-Learning/expert-uspto
Commit ·
d57e96f
1
Parent(s): e9a5026
Training in progress, step 500
Browse files- all_results.json +8 -0
- pytorch_model.bin +1 -1
- train_results.json +8 -0
- trainer_state.json +25 -0
- training_args.bin +1 -1
all_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 0.0,
|
| 3 |
+
"train_loss": 2.4250597953796387,
|
| 4 |
+
"train_runtime": 3.5143,
|
| 5 |
+
"train_samples": 1854797,
|
| 6 |
+
"train_samples_per_second": 18.212,
|
| 7 |
+
"train_steps_per_second": 0.285
|
| 8 |
+
}
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4114319645
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:355cfc139dcedf713fecb995297f7e23eda985eed91c164de1cc246145aa043c
|
| 3 |
size 4114319645
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 0.0,
|
| 3 |
+
"train_loss": 2.4250597953796387,
|
| 4 |
+
"train_runtime": 3.5143,
|
| 5 |
+
"train_samples": 1854797,
|
| 6 |
+
"train_samples_per_second": 18.212,
|
| 7 |
+
"train_steps_per_second": 0.285
|
| 8 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 3.450506793185249e-05,
|
| 5 |
+
"global_step": 1,
|
| 6 |
+
"is_hyper_param_search": false,
|
| 7 |
+
"is_local_process_zero": true,
|
| 8 |
+
"is_world_process_zero": true,
|
| 9 |
+
"log_history": [
|
| 10 |
+
{
|
| 11 |
+
"epoch": 0.0,
|
| 12 |
+
"step": 1,
|
| 13 |
+
"total_flos": 178669297336320.0,
|
| 14 |
+
"train_loss": 2.4250597953796387,
|
| 15 |
+
"train_runtime": 3.5143,
|
| 16 |
+
"train_samples_per_second": 18.212,
|
| 17 |
+
"train_steps_per_second": 0.285
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"max_steps": 1,
|
| 21 |
+
"num_train_epochs": 1,
|
| 22 |
+
"total_flos": 178669297336320.0,
|
| 23 |
+
"trial_name": null,
|
| 24 |
+
"trial_params": null
|
| 25 |
+
}
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3707
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc16ed911933a1a9f1fb9b5c9ed42e306ece83ad916da5786f318d4db6e2c524
|
| 3 |
size 3707
|