Instructions to use jonathankang/llm_output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jonathankang/llm_output with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jonathankang/llm_output")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jonathankang/llm_output") model = AutoModelForCausalLM.from_pretrained("jonathankang/llm_output") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jonathankang/llm_output with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jonathankang/llm_output" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jonathankang/llm_output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jonathankang/llm_output
- SGLang
How to use jonathankang/llm_output 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 "jonathankang/llm_output" \ --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": "jonathankang/llm_output", "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 "jonathankang/llm_output" \ --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": "jonathankang/llm_output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jonathankang/llm_output with Docker Model Runner:
docker model run hf.co/jonathankang/llm_output
Ctrl+K
- Jul15_09-50-47_LAPTOP-SH83L8BH
- Jul15_09-54-20_LAPTOP-SH83L8BH
- Jul15_11-17-05_LAPTOP-SH83L8BH
- Jul15_12-25-16_LAPTOP-SH83L8BH
- Jul15_12-28-00_LAPTOP-SH83L8BH
- Jul15_12-30-45_LAPTOP-SH83L8BH
- Jul15_12-32-11_LAPTOP-SH83L8BH
- Jul15_12-40-01_LAPTOP-SH83L8BH
- Jul15_12-45-42_LAPTOP-SH83L8BH
- Jul15_12-50-13_LAPTOP-SH83L8BH
- Jul15_12-52-23_LAPTOP-SH83L8BH
- Jul15_12-55-11_LAPTOP-SH83L8BH
- Jul15_12-59-18_LAPTOP-SH83L8BH
- Jul15_14-40-45_LAPTOP-SH83L8BH
- Jul15_14-46-59_LAPTOP-SH83L8BH
- Jul15_15-00-35_LAPTOP-SH83L8BH
- Jul16_09-28-27_LAPTOP-SH83L8BH
- Jul16_09-39-27_LAPTOP-SH83L8BH
- Jul16_09-53-32_LAPTOP-SH83L8BH
- Jul16_09-55-16_LAPTOP-SH83L8BH
- Jul16_09-58-54_LAPTOP-SH83L8BH