Instructions to use gokul00060/codellama2-finetuned-ROBOT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gokul00060/codellama2-finetuned-ROBOT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gokul00060/codellama2-finetuned-ROBOT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gokul00060/codellama2-finetuned-ROBOT") model = AutoModelForCausalLM.from_pretrained("gokul00060/codellama2-finetuned-ROBOT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gokul00060/codellama2-finetuned-ROBOT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gokul00060/codellama2-finetuned-ROBOT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gokul00060/codellama2-finetuned-ROBOT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/gokul00060/codellama2-finetuned-ROBOT
- SGLang
How to use gokul00060/codellama2-finetuned-ROBOT 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 "gokul00060/codellama2-finetuned-ROBOT" \ --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": "gokul00060/codellama2-finetuned-ROBOT", "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 "gokul00060/codellama2-finetuned-ROBOT" \ --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": "gokul00060/codellama2-finetuned-ROBOT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use gokul00060/codellama2-finetuned-ROBOT with Docker Model Runner:
docker model run hf.co/gokul00060/codellama2-finetuned-ROBOT
Commit History
-
Upload tokenizer
68f8bfd -
Upload LlamaForCausalLM
29cad6c -
Training in progress, epoch 33
1a137f4 -
Training in progress, epoch 33
bddda60 -
Training in progress, epoch 32
9ce994d -
Training in progress, epoch 31
aae7c85 -
Training in progress, epoch 30
d4c2b9f -
Training in progress, epoch 29
857d9ec -
Training in progress, epoch 28
a4dae5f -
Training in progress, epoch 27
3114102 -
Training in progress, epoch 26
c29d3ae -
Training in progress, epoch 25
de0fa05 -
Training in progress, epoch 24
8dae5af -
Training in progress, epoch 23
af8cbf5 -
Training in progress, epoch 22
dca3595 -
Training in progress, epoch 21
449e2ab -
Training in progress, epoch 20
c5c385f -
Training in progress, epoch 19
10bf0c9 -
Training in progress, epoch 18
27d92f1 -
Training in progress, epoch 17
eb4a181 -
Training in progress, epoch 16
2bb2d88 -
Training in progress, epoch 15
420ea8d -
Training in progress, epoch 14
29978f3 -
Training in progress, epoch 13
1ed7849 -
Training in progress, epoch 12
a696b8b -
Training in progress, epoch 11
ba350d8 -
Training in progress, epoch 10
8612af9 -
Training in progress, epoch 9
4577ef7 -
Training in progress, epoch 8
0b4fe57 -
Training in progress, epoch 7
ff3e111 -
Training in progress, epoch 6
09f997c -
Training in progress, epoch 5
fd22f7f -
Training in progress, epoch 4
9e4e501 -
Training in progress, epoch 3
e0b3e1a -
Training in progress, epoch 2
b611237 -
Training in progress, epoch 1
a9a6104 -
initial commit
0485d60