Instructions to use ishanarang/output-ds with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ishanarang/output-ds with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ishanarang/output-ds")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ishanarang/output-ds") model = AutoModelForCausalLM.from_pretrained("ishanarang/output-ds") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ishanarang/output-ds with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ishanarang/output-ds" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ishanarang/output-ds", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ishanarang/output-ds
- SGLang
How to use ishanarang/output-ds 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 "ishanarang/output-ds" \ --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": "ishanarang/output-ds", "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 "ishanarang/output-ds" \ --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": "ishanarang/output-ds", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ishanarang/output-ds with Docker Model Runner:
docker model run hf.co/ishanarang/output-ds
Commit ·
2d1f04c
1
Parent(s): 9ceb60e
Training in progress, step 50
Browse files
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 438080896
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:387f82047e7f00f7df3dc177dcc141173aa5e51dc16b340923c5543f98b6a039
|
| 3 |
size 438080896
|
runs/Dec06_17-39-34_6713c874df9d/events.out.tfevents.1701884375.6713c874df9d.219.1
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1794e8f2219f110aa9fc84264f7d3bf56c651b4b8eb88eff8e8e3ce6b160f6ab
|
| 3 |
+
size 10536
|
runs/Dec06_17-52-35_6713c874df9d/events.out.tfevents.1701885156.6713c874df9d.219.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fdd88af5864b7bde3f5c0e35b29342e034481de5bb4167d3c0a1ddf48812f4ad
|
| 3 |
+
size 4626
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4536
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b3ee7bf0e7a8f5558e97b5d96399f0431f0fbb18fad33c2e32fa66864a1b958
|
| 3 |
size 4536
|