Text Generation
Transformers
TensorBoard
Safetensors
llama
Generated from Trainer
trl
grpo
text-generation-inference
Instructions to use zerozeroz/CodeLlama-7b-hf_1000rl_cpp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zerozeroz/CodeLlama-7b-hf_1000rl_cpp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="zerozeroz/CodeLlama-7b-hf_1000rl_cpp")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("zerozeroz/CodeLlama-7b-hf_1000rl_cpp") model = AutoModelForCausalLM.from_pretrained("zerozeroz/CodeLlama-7b-hf_1000rl_cpp", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use zerozeroz/CodeLlama-7b-hf_1000rl_cpp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zerozeroz/CodeLlama-7b-hf_1000rl_cpp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zerozeroz/CodeLlama-7b-hf_1000rl_cpp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/zerozeroz/CodeLlama-7b-hf_1000rl_cpp
- SGLang
How to use zerozeroz/CodeLlama-7b-hf_1000rl_cpp 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 "zerozeroz/CodeLlama-7b-hf_1000rl_cpp" \ --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": "zerozeroz/CodeLlama-7b-hf_1000rl_cpp", "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 "zerozeroz/CodeLlama-7b-hf_1000rl_cpp" \ --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": "zerozeroz/CodeLlama-7b-hf_1000rl_cpp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use zerozeroz/CodeLlama-7b-hf_1000rl_cpp with Docker Model Runner:
docker model run hf.co/zerozeroz/CodeLlama-7b-hf_1000rl_cpp
Training in progress, step 169
Browse files
model-00001-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4939116424
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:93c25ec47f94815d08007947d5fcae9937161a9ff368ac39d5b14fcce35189b7
|
| 3 |
size 4939116424
|
model-00002-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4947390880
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c680113c519ea196878e7c9161b752a7be247145265e0f34eb2ccd4ad9b6313f
|
| 3 |
size 4947390880
|
model-00003-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3590619888
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:853f8a29eab290312b2ad7f1d8e6e677fc18730261ea9a76b7ddd318fc4453c9
|
| 3 |
size 3590619888
|
runs/Apr16_08-19-43_fdse/events.out.tfevents.1744791627.fdse.236453.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64ccb5b2c3f8a75045ad0c20cbeb44c1236033c25f701cc3c77be5f73ce0a9cc
|
| 3 |
+
size 101031
|