Instructions to use tjpel/nlpsummer23 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tjpel/nlpsummer23 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tjpel/nlpsummer23")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tjpel/nlpsummer23") model = AutoModelForCausalLM.from_pretrained("tjpel/nlpsummer23", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tjpel/nlpsummer23 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tjpel/nlpsummer23" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tjpel/nlpsummer23", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tjpel/nlpsummer23
- SGLang
How to use tjpel/nlpsummer23 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 "tjpel/nlpsummer23" \ --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": "tjpel/nlpsummer23", "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 "tjpel/nlpsummer23" \ --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": "tjpel/nlpsummer23", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use tjpel/nlpsummer23 with Docker Model Runner:
docker model run hf.co/tjpel/nlpsummer23
Commit History
-
Upload merges.txt with huggingface_hub
2700b7d -
Upload vocab.json with huggingface_hub
9c40886 -
Upload added_tokens.json with huggingface_hub
bca0b06 -
Upload special_tokens_map.json with huggingface_hub
412a3de -
Upload tokenizer_config.json with huggingface_hub
2a0f60f -
Upload training_args.bin with huggingface_hub
180933d -
Upload pytorch_model.bin with huggingface_hub
bd2d02c -
Upload generation_config.json with huggingface_hub
bd8aa09 -
Upload config.json with huggingface_hub
c4e2fb9 -
Upload shakespeare.txt with huggingface_hub
3e2567c -
Upload merges.txt with huggingface_hub
0ea879f -
Upload vocab.json with huggingface_hub
e21a05d -
Upload added_tokens.json with huggingface_hub
267406e -
Upload special_tokens_map.json with huggingface_hub
7b2ab31 -
Upload tokenizer_config.json with huggingface_hub
78b5c3f -
Upload training_args.bin with huggingface_hub
d0f00ae -
Upload pytorch_model.bin with huggingface_hub
dca6838 -
Upload generation_config.json with huggingface_hub
bd33eab -
Upload config.json with huggingface_hub
f6baac1 -
Upload shakespeare.txt with huggingface_hub
0f43474 -
Upload merges.txt with huggingface_hub
4898226 -
Upload vocab.json with huggingface_hub
f0f5c46 -
Upload added_tokens.json with huggingface_hub
776ea8b -
Upload special_tokens_map.json with huggingface_hub
a3593c3 -
Upload tokenizer_config.json with huggingface_hub
2a5cfd0 -
Upload training_args.bin with huggingface_hub
c7cca27 -
Upload pytorch_model.bin with huggingface_hub
13294eb -
Upload generation_config.json with huggingface_hub
c1f03a0 -
Upload config.json with huggingface_hub
b2ab770 -
Upload shakespeare.txt with huggingface_hub
5929d0f -
Upload merges.txt with huggingface_hub
2a07cab -
Upload vocab.json with huggingface_hub
35e3e37 -
Upload added_tokens.json with huggingface_hub
0e1f89b -
Upload special_tokens_map.json with huggingface_hub
a967d63 -
Upload tokenizer_config.json with huggingface_hub
a8c2bea -
Upload training_args.bin with huggingface_hub
d0e2c29 -
Upload pytorch_model.bin with huggingface_hub
034a40b -
Upload generation_config.json with huggingface_hub
8a8f0a3 -
Upload config.json with huggingface_hub
1d55d0a -
Upload shakespeare.txt with huggingface_hub
c0b9e96 -
initial commit
6bb8e2d