Instructions to use kaytoo2022/codet5_react_typescript with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kaytoo2022/codet5_react_typescript with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kaytoo2022/codet5_react_typescript")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("kaytoo2022/codet5_react_typescript") model = AutoModelForSeq2SeqLM.from_pretrained("kaytoo2022/codet5_react_typescript", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kaytoo2022/codet5_react_typescript with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kaytoo2022/codet5_react_typescript" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kaytoo2022/codet5_react_typescript", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kaytoo2022/codet5_react_typescript
- SGLang
How to use kaytoo2022/codet5_react_typescript 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 "kaytoo2022/codet5_react_typescript" \ --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": "kaytoo2022/codet5_react_typescript", "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 "kaytoo2022/codet5_react_typescript" \ --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": "kaytoo2022/codet5_react_typescript", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kaytoo2022/codet5_react_typescript with Docker Model Runner:
docker model run hf.co/kaytoo2022/codet5_react_typescript
Commit History
-
Training in progress epoch 4
a832261 -
Training in progress epoch 3
53594a2 -
Training in progress epoch 2
0fe9ee2 -
Training in progress epoch 1
41b90c0 -
Training in progress epoch 0
60110ad
-
Update README.md
Verified signature55df853 -
Training in progress epoch 4
7bb1c82 -
Training in progress epoch 3
2c28106 -
Training in progress epoch 2
3eb45ee -
Training in progress epoch 1
15feb52 -
Training in progress epoch 0
936e9a1
-
Update README.md
Verified signature29701b6 -
Training in progress epoch 4
725fc5b -
Training in progress epoch 3
3a75e23 -
Training in progress epoch 2
cd3c2d3 -
Training in progress epoch 1
fd868a4 -
Training in progress epoch 0
1c38723 -
initial commit
Verified signature8e72a24