Instructions to use CLMBR/binding-case-transformer-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CLMBR/binding-case-transformer-3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CLMBR/binding-case-transformer-3")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CLMBR/binding-case-transformer-3") model = AutoModelForCausalLM.from_pretrained("CLMBR/binding-case-transformer-3") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use CLMBR/binding-case-transformer-3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CLMBR/binding-case-transformer-3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CLMBR/binding-case-transformer-3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CLMBR/binding-case-transformer-3
- SGLang
How to use CLMBR/binding-case-transformer-3 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 "CLMBR/binding-case-transformer-3" \ --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": "CLMBR/binding-case-transformer-3", "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 "CLMBR/binding-case-transformer-3" \ --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": "CLMBR/binding-case-transformer-3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CLMBR/binding-case-transformer-3 with Docker Model Runner:
docker model run hf.co/CLMBR/binding-case-transformer-3
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("CLMBR/binding-case-transformer-3")
model = AutoModelForCausalLM.from_pretrained("CLMBR/binding-case-transformer-3")Quick Links
binding-case-transformer-3
This model is a fine-tuned version of on the None dataset. It achieves the following results on the evaluation set:
- Loss: 3.8670
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 32
- eval_batch_size: 32
- seed: 3
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- training_steps: 3052726
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 4.2314 | 0.03 | 76320 | 4.2045 |
| 4.0255 | 1.03 | 152640 | 4.0343 |
| 3.9162 | 0.03 | 228960 | 3.9592 |
| 3.8461 | 1.03 | 305280 | 3.9177 |
| 3.7972 | 0.03 | 381600 | 3.8919 |
| 3.7556 | 0.03 | 457920 | 3.8758 |
| 3.7234 | 1.03 | 534240 | 3.8647 |
| 3.6911 | 0.03 | 610560 | 3.8576 |
| 3.6635 | 0.03 | 686880 | 3.8523 |
| 3.6373 | 1.03 | 763200 | 3.8498 |
| 3.6137 | 0.03 | 839520 | 3.8490 |
| 3.5941 | 0.03 | 915840 | 3.8470 |
| 3.5757 | 1.03 | 992160 | 3.8467 |
| 3.5548 | 0.03 | 1068480 | 3.8481 |
| 3.5424 | 1.03 | 1144800 | 3.8487 |
| 3.5221 | 0.03 | 1221120 | 3.8502 |
| 3.5058 | 1.03 | 1297440 | 3.8516 |
| 3.4945 | 0.03 | 1373760 | 3.8533 |
| 3.4803 | 0.03 | 1450080 | 3.8544 |
| 3.4734 | 1.03 | 1526400 | 3.8559 |
| 3.4661 | 0.03 | 1602720 | 3.8584 |
| 3.4567 | 1.03 | 1679040 | 3.8596 |
| 3.449 | 0.03 | 1755360 | 3.8612 |
| 3.4373 | 1.03 | 1831680 | 3.8616 |
| 3.4256 | 0.03 | 1908000 | 3.8637 |
| 3.4142 | 0.03 | 1984320 | 3.8646 |
| 3.4019 | 1.03 | 2060640 | 3.8663 |
| 3.3938 | 0.03 | 2136960 | 3.8681 |
| 3.3805 | 1.03 | 2213280 | 3.8681 |
| 3.3672 | 0.03 | 2289600 | 3.8700 |
| 3.3602 | 1.03 | 2365920 | 3.8706 |
| 3.3464 | 0.03 | 2442240 | 3.8702 |
| 3.3365 | 0.03 | 2518560 | 3.8715 |
| 3.3289 | 0.03 | 2594880 | 3.8716 |
| 3.3183 | 1.03 | 2671200 | 3.8725 |
| 3.3134 | 0.03 | 2747520 | 3.8718 |
| 3.3094 | 0.03 | 2823840 | 3.8712 |
| 3.3047 | 1.03 | 2900160 | 3.8702 |
| 3.3001 | 0.03 | 2976480 | 3.8689 |
| 3.2937 | 0.02 | 3052726 | 3.8670 |
Framework versions
- Transformers 4.33.3
- Pytorch 2.0.1
- Datasets 2.12.0
- Tokenizers 0.13.3
- Downloads last month
- 394
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CLMBR/binding-case-transformer-3")