Text Generation
Transformers
TensorBoard
Safetensors
PyTorch
English
opt
OPTForCausalLM
trl
sft
Generated from Trainer
text-generation-inference
Instructions to use pitangent-ds/opt-350M-tutor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pitangent-ds/opt-350M-tutor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pitangent-ds/opt-350M-tutor")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pitangent-ds/opt-350M-tutor") model = AutoModelForCausalLM.from_pretrained("pitangent-ds/opt-350M-tutor", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pitangent-ds/opt-350M-tutor with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pitangent-ds/opt-350M-tutor" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pitangent-ds/opt-350M-tutor", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pitangent-ds/opt-350M-tutor
- SGLang
How to use pitangent-ds/opt-350M-tutor 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 "pitangent-ds/opt-350M-tutor" \ --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": "pitangent-ds/opt-350M-tutor", "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 "pitangent-ds/opt-350M-tutor" \ --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": "pitangent-ds/opt-350M-tutor", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pitangent-ds/opt-350M-tutor with Docker Model Runner:
docker model run hf.co/pitangent-ds/opt-350M-tutor
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,14 +1,21 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
base_model: facebook/opt-350m
|
| 4 |
tags:
|
| 5 |
- OPTForCausalLM
|
| 6 |
- trl
|
| 7 |
- sft
|
| 8 |
- generated_from_trainer
|
|
|
|
| 9 |
model-index:
|
| 10 |
- name: opt-350M-tutor
|
| 11 |
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -55,4 +62,4 @@ The following hyperparameters were used during training:
|
|
| 55 |
- Transformers 4.42.3
|
| 56 |
- Pytorch 2.3.0+cu121
|
| 57 |
- Datasets 2.20.0
|
| 58 |
-
- Tokenizers 0.19.1
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
base_model: facebook/opt-350m
|
| 4 |
tags:
|
| 5 |
- OPTForCausalLM
|
| 6 |
- trl
|
| 7 |
- sft
|
| 8 |
- generated_from_trainer
|
| 9 |
+
- pytorch
|
| 10 |
model-index:
|
| 11 |
- name: opt-350M-tutor
|
| 12 |
results: []
|
| 13 |
+
datasets:
|
| 14 |
+
- Rohan1998/Tutor
|
| 15 |
+
language:
|
| 16 |
+
- en
|
| 17 |
+
library_name: transformers
|
| 18 |
+
pipeline_tag: text-generation
|
| 19 |
---
|
| 20 |
|
| 21 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 62 |
- Transformers 4.42.3
|
| 63 |
- Pytorch 2.3.0+cu121
|
| 64 |
- Datasets 2.20.0
|
| 65 |
+
- Tokenizers 0.19.1
|