Text Generation
Transformers
PyTorch
TensorBoard
opt
Generated from Trainer
text-generation-inference
Instructions to use ksenon07147/NLP_Opt350M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ksenon07147/NLP_Opt350M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ksenon07147/NLP_Opt350M")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ksenon07147/NLP_Opt350M") model = AutoModelForCausalLM.from_pretrained("ksenon07147/NLP_Opt350M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ksenon07147/NLP_Opt350M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ksenon07147/NLP_Opt350M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ksenon07147/NLP_Opt350M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ksenon07147/NLP_Opt350M
- SGLang
How to use ksenon07147/NLP_Opt350M 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 "ksenon07147/NLP_Opt350M" \ --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": "ksenon07147/NLP_Opt350M", "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 "ksenon07147/NLP_Opt350M" \ --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": "ksenon07147/NLP_Opt350M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ksenon07147/NLP_Opt350M with Docker Model Runner:
docker model run hf.co/ksenon07147/NLP_Opt350M
Commit ·
9e3861c
1
Parent(s): 274994f
Training in progress, step 500
Browse files- pytorch_model.bin +1 -1
- runs/Dec26_20-04-00_pc10/1672056243.956324/events.out.tfevents.1672056243.pc10.21733.1 +3 -0
- runs/Dec26_20-04-00_pc10/events.out.tfevents.1672056243.pc10.21733.0 +3 -0
- runs/Dec26_20-04-00_pc10/events.out.tfevents.1672056798.pc10.21733.2 +3 -0
- runs/Dec26_20-14-54_pc10/1672056902.6277401/events.out.tfevents.1672056902.pc10.22147.1 +3 -0
- runs/Dec26_20-14-54_pc10/events.out.tfevents.1672056902.pc10.22147.0 +3 -0
- training_args.bin +1 -1
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1324917277
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4351b875f53b9b26b3bc8469a49599b0038eec4a9df6e15f1b0b1f09f2e5b059
|
| 3 |
size 1324917277
|
runs/Dec26_20-04-00_pc10/1672056243.956324/events.out.tfevents.1672056243.pc10.21733.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f47f5974de82d6ed8b4042815a8fc048564ce8692f9f1456237468e53e8b081
|
| 3 |
+
size 5638
|
runs/Dec26_20-04-00_pc10/events.out.tfevents.1672056243.pc10.21733.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d8d7366292e3cc19477bb114caa34df2b25aa3bd11e81eb805c12bce07db36c
|
| 3 |
+
size 5850
|
runs/Dec26_20-04-00_pc10/events.out.tfevents.1672056798.pc10.21733.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7f1ab7f2316a91fcd849935f5677fb79cbb4aff3324598d5221f077212632ed
|
| 3 |
+
size 311
|
runs/Dec26_20-14-54_pc10/1672056902.6277401/events.out.tfevents.1672056902.pc10.22147.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9587b1646695db55ada5f8900382c6006e0b283b99c6f9dc526e9cca668244e
|
| 3 |
+
size 5638
|
runs/Dec26_20-14-54_pc10/events.out.tfevents.1672056902.pc10.22147.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea9fb40250769b7a169cfe7253abb5fd979e000d4d0b1bf277a4019ac797bf87
|
| 3 |
+
size 4054
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3515
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:513c2ca2bd8b512585609592b9c204e902291ce72531f7afe91095bc3da7e817
|
| 3 |
size 3515
|