Text Generation
Transformers
PyTorch
opt
Generated from Trainer
qa
open data
opt-350
opt-350m
text-generation-inference
Instructions to use ccore/opt-350m-open-data-understanding with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ccore/opt-350m-open-data-understanding with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ccore/opt-350m-open-data-understanding")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ccore/opt-350m-open-data-understanding") model = AutoModelForCausalLM.from_pretrained("ccore/opt-350m-open-data-understanding", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ccore/opt-350m-open-data-understanding with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ccore/opt-350m-open-data-understanding" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ccore/opt-350m-open-data-understanding", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ccore/opt-350m-open-data-understanding
- SGLang
How to use ccore/opt-350m-open-data-understanding 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 "ccore/opt-350m-open-data-understanding" \ --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": "ccore/opt-350m-open-data-understanding", "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 "ccore/opt-350m-open-data-understanding" \ --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": "ccore/opt-350m-open-data-understanding", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ccore/opt-350m-open-data-understanding with Docker Model Runner:
docker model run hf.co/ccore/opt-350m-open-data-understanding
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,9 +8,8 @@ tags:
|
|
| 8 |
- opt
|
| 9 |
metrics:
|
| 10 |
- accuracy
|
| 11 |
-
|
| 12 |
-
-
|
| 13 |
-
results: []
|
| 14 |
datasets:
|
| 15 |
- ccore/open_data_understanding
|
| 16 |
pipeline_tag: text-generation
|
|
|
|
| 8 |
- opt
|
| 9 |
metrics:
|
| 10 |
- accuracy
|
| 11 |
+
widget:
|
| 12 |
+
- text: "Certainly! Consider a user interface for a complex software application. If the user encounters a lengthy list of commands or prompts, it could lead to confusion and frustration. By limiting the number of tokens, the model can provide concise instructions that are easy to understand, leading to a smoother user experience.\n\n# [UNDERSTANDING]\n"
|
|
|
|
| 13 |
datasets:
|
| 14 |
- ccore/open_data_understanding
|
| 15 |
pipeline_tag: text-generation
|