Instructions to use GItaf/roberta-base-roberta-base-TF-weight2-epoch5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GItaf/roberta-base-roberta-base-TF-weight2-epoch5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GItaf/roberta-base-roberta-base-TF-weight2-epoch5")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GItaf/roberta-base-roberta-base-TF-weight2-epoch5") model = AutoModelForCausalLM.from_pretrained("GItaf/roberta-base-roberta-base-TF-weight2-epoch5") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use GItaf/roberta-base-roberta-base-TF-weight2-epoch5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GItaf/roberta-base-roberta-base-TF-weight2-epoch5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GItaf/roberta-base-roberta-base-TF-weight2-epoch5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GItaf/roberta-base-roberta-base-TF-weight2-epoch5
- SGLang
How to use GItaf/roberta-base-roberta-base-TF-weight2-epoch5 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 "GItaf/roberta-base-roberta-base-TF-weight2-epoch5" \ --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": "GItaf/roberta-base-roberta-base-TF-weight2-epoch5", "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 "GItaf/roberta-base-roberta-base-TF-weight2-epoch5" \ --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": "GItaf/roberta-base-roberta-base-TF-weight2-epoch5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GItaf/roberta-base-roberta-base-TF-weight2-epoch5 with Docker Model Runner:
docker model run hf.co/GItaf/roberta-base-roberta-base-TF-weight2-epoch5
roberta-base-roberta-base-TF-weight2-epoch5
This model is a fine-tuned version of on the None dataset. It achieves the following results on the evaluation set:
- Loss: 5.5174
- Cls loss: 0.6899
- Lm loss: 4.1376
- Cls Accuracy: 0.5401
- Cls F1: 0.3788
- Cls Precision: 0.2917
- Cls Recall: 0.5401
- Perplexity: 62.65
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: 2e-05
- train_batch_size: 2
- eval_batch_size: 2
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Cls loss | Lm loss | Cls Accuracy | Cls F1 | Cls Precision | Cls Recall | Perplexity |
|---|---|---|---|---|---|---|---|---|---|---|
| 6.023 | 1.0 | 3470 | 5.6863 | 0.6910 | 4.3046 | 0.5401 | 0.3788 | 0.2917 | 0.5401 | 74.04 |
| 5.6871 | 2.0 | 6940 | 5.5897 | 0.6926 | 4.2045 | 0.5401 | 0.3788 | 0.2917 | 0.5401 | 66.99 |
| 5.5587 | 3.0 | 10410 | 5.5414 | 0.6905 | 4.1604 | 0.5401 | 0.3788 | 0.2917 | 0.5401 | 64.10 |
| 5.481 | 4.0 | 13880 | 5.5208 | 0.6900 | 4.1409 | 0.5401 | 0.3788 | 0.2917 | 0.5401 | 62.86 |
| 5.4338 | 5.0 | 17350 | 5.5174 | 0.6899 | 4.1376 | 0.5401 | 0.3788 | 0.2917 | 0.5401 | 62.65 |
Framework versions
- Transformers 4.21.2
- Pytorch 1.12.1
- Datasets 2.4.0
- Tokenizers 0.12.1
- Downloads last month
- 5