Instructions to use MerziaAdamjee/codellama2-finetuned-spiderdata with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MerziaAdamjee/codellama2-finetuned-spiderdata with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MerziaAdamjee/codellama2-finetuned-spiderdata")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MerziaAdamjee/codellama2-finetuned-spiderdata") model = AutoModelForCausalLM.from_pretrained("MerziaAdamjee/codellama2-finetuned-spiderdata", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MerziaAdamjee/codellama2-finetuned-spiderdata with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MerziaAdamjee/codellama2-finetuned-spiderdata" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MerziaAdamjee/codellama2-finetuned-spiderdata", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MerziaAdamjee/codellama2-finetuned-spiderdata
- SGLang
How to use MerziaAdamjee/codellama2-finetuned-spiderdata 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 "MerziaAdamjee/codellama2-finetuned-spiderdata" \ --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": "MerziaAdamjee/codellama2-finetuned-spiderdata", "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 "MerziaAdamjee/codellama2-finetuned-spiderdata" \ --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": "MerziaAdamjee/codellama2-finetuned-spiderdata", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MerziaAdamjee/codellama2-finetuned-spiderdata with Docker Model Runner:
docker model run hf.co/MerziaAdamjee/codellama2-finetuned-spiderdata
Download adapter_model.bin from MerziaAdamjee/codellama2-finetuned-spiderdata: direct link, hf CLI and curl.
- Browser
- Download file 16.8 MB
-
https://huggingface.co/MerziaAdamjee/codellama2-finetuned-spiderdata/resolve/refs%2Fpr%2F1/adapter_model.bin
- Command line
-
hf download hf://MerziaAdamjee/codellama2-finetuned-spiderdata@refs/pr/1/adapter_model.bin
-
curl -L -o adapter_model.bin https://huggingface.co/MerziaAdamjee/codellama2-finetuned-spiderdata/resolve/refs%2Fpr%2F1/adapter_model.bin
16.8 MB
- Xet hash:
- 06286951eda7a486f0e6be6e5d2d55da07293e8c5f179c777567412c6aa24bfa
- Size of remote file:
- 16.8 MB
- SHA256:
- 11cdd6aa2c08791d3822fc1f293174aec04244605c8989551f4c795c31d4e1a6
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.