ProRec
Collection
Data and Models for "Source Code Foundation Models are Transferable Binary Analysis Knowledge Bases" • 15 items • Updated
How to use PurCL/src_prober_codellama-7b-last1unfreeze with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="PurCL/src_prober_codellama-7b-last1unfreeze") # Load model directly
from transformers import AutoModelForSeq2SeqLM
model = AutoModelForSeq2SeqLM.from_pretrained("PurCL/src_prober_codellama-7b-last1unfreeze", dtype="auto")How to use PurCL/src_prober_codellama-7b-last1unfreeze with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "PurCL/src_prober_codellama-7b-last1unfreeze"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "PurCL/src_prober_codellama-7b-last1unfreeze",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/PurCL/src_prober_codellama-7b-last1unfreeze
How to use PurCL/src_prober_codellama-7b-last1unfreeze with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "PurCL/src_prober_codellama-7b-last1unfreeze" \
--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": "PurCL/src_prober_codellama-7b-last1unfreeze",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "PurCL/src_prober_codellama-7b-last1unfreeze" \
--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": "PurCL/src_prober_codellama-7b-last1unfreeze",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use PurCL/src_prober_codellama-7b-last1unfreeze with Docker Model Runner:
docker model run hf.co/PurCL/src_prober_codellama-7b-last1unfreeze
This model is a fine-tuned version of on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.7634 | 0.24 | 500 | 0.7745 |
| 0.7376 | 0.48 | 1000 | 0.7399 |
| 0.7006 | 0.72 | 1500 | 0.7138 |
| 0.6721 | 0.97 | 2000 | 0.7015 |
| 0.6753 | 1.21 | 2500 | 0.6941 |
| 0.6716 | 1.45 | 3000 | 0.6894 |
| 0.6595 | 1.69 | 3500 | 0.6865 |
| 0.6743 | 1.93 | 4000 | 0.6848 |
| 0.6647 | 2.17 | 4500 | 0.6819 |
| 0.6721 | 2.42 | 5000 | 0.6797 |
| 0.6642 | 2.66 | 5500 | 0.6780 |
| 0.6653 | 2.9 | 6000 | 0.6764 |
| 0.643 | 3.14 | 6500 | 0.6756 |
| 0.6532 | 3.38 | 7000 | 0.6749 |
| 0.6299 | 3.62 | 7500 | 0.6745 |
| 0.6442 | 3.87 | 8000 | 0.6737 |
| 0.6347 | 4.11 | 8500 | 0.6733 |
| 0.6364 | 4.35 | 9000 | 0.6730 |
| 0.6456 | 4.59 | 9500 | 0.6728 |
| 0.6338 | 4.83 | 10000 | 0.6729 |
docker model run hf.co/PurCL/src_prober_codellama-7b-last1unfreeze