Text Generation
Transformers
PyTorch
longllama
code
text-generation-inference
custom_code
Eval Results (legacy)
Instructions to use syzymon/long_llama_code_7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use syzymon/long_llama_code_7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="syzymon/long_llama_code_7b", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("syzymon/long_llama_code_7b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use syzymon/long_llama_code_7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "syzymon/long_llama_code_7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "syzymon/long_llama_code_7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/syzymon/long_llama_code_7b
- SGLang
How to use syzymon/long_llama_code_7b 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 "syzymon/long_llama_code_7b" \ --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": "syzymon/long_llama_code_7b", "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 "syzymon/long_llama_code_7b" \ --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": "syzymon/long_llama_code_7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use syzymon/long_llama_code_7b with Docker Model Runner:
docker model run hf.co/syzymon/long_llama_code_7b
Update README.md
Browse files
README.md
CHANGED
|
@@ -36,6 +36,28 @@ model-index:
|
|
| 36 |
type: pass@1
|
| 37 |
value: 0.249
|
| 38 |
verified: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
---
|
| 40 |
|
| 41 |
|
|
|
|
| 36 |
type: pass@1
|
| 37 |
value: 0.249
|
| 38 |
verified: false
|
| 39 |
+
- task:
|
| 40 |
+
name: Math Reasoning
|
| 41 |
+
type: reasoning
|
| 42 |
+
dataset:
|
| 43 |
+
name: "GSM8K"
|
| 44 |
+
type: gsm8k
|
| 45 |
+
metrics:
|
| 46 |
+
- name: pass@1
|
| 47 |
+
type: pass@1
|
| 48 |
+
value: 0.174
|
| 49 |
+
verified: false
|
| 50 |
+
- task:
|
| 51 |
+
name: Knowledge
|
| 52 |
+
type: knowledge
|
| 53 |
+
dataset:
|
| 54 |
+
name: "MMLU"
|
| 55 |
+
type: mmlu
|
| 56 |
+
metrics:
|
| 57 |
+
- name: accuracy
|
| 58 |
+
type: accuracy
|
| 59 |
+
value: 0.399
|
| 60 |
+
verified: false
|
| 61 |
---
|
| 62 |
|
| 63 |
|