Text Generation
Transformers
Safetensors
gpt2
trl
sft
Generated from Trainer
text-generation-inference
Instructions to use singhshiva/tmp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use singhshiva/tmp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="singhshiva/tmp")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("singhshiva/tmp") model = AutoModelForCausalLM.from_pretrained("singhshiva/tmp") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use singhshiva/tmp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "singhshiva/tmp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "singhshiva/tmp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/singhshiva/tmp
- SGLang
How to use singhshiva/tmp 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 "singhshiva/tmp" \ --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": "singhshiva/tmp", "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 "singhshiva/tmp" \ --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": "singhshiva/tmp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use singhshiva/tmp with Docker Model Runner:
docker model run hf.co/singhshiva/tmp
Ctrl+K
- jax
- tmppptgk1qp
- v8-compile-cache-0
- yarn--1704964927164-0.1782869183766309
- yarn--1704964927165-0.35993847591915795
- yarn--1704964928127-0.35887085411210307
- yarn--1704964933548-0.9586437363349738
- yarn--1704965062369-0.2181574829625219
- yarn--1704965063359-0.7469983285256505
- yarn--1704965068891-0.46018400452963615
- 1.78 kB
- 969 Bytes
- 741 Bytes
- 907 Bytes
- 1.25 kB
- 119 Bytes
- 0 Bytes
- 3.29 kB
- 456 kB
- 498 MB xet
- 12.4 kB
- 131 Bytes
- 159 kB
- 2.11 MB
- 476 Bytes
- 5.3 kB xet
- 798 kB