Text Generation
Transformers
Safetensors
English
Chinese
qwen2
text-generation-inference
trl
coder
v1.1
conversational
Eval Results (legacy)
Instructions to use prithivMLmods/Viper-Coder-v1.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Viper-Coder-v1.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Viper-Coder-v1.1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/Viper-Coder-v1.1") model = AutoModelForMultimodalLM.from_pretrained("prithivMLmods/Viper-Coder-v1.1") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use prithivMLmods/Viper-Coder-v1.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Viper-Coder-v1.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Viper-Coder-v1.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Viper-Coder-v1.1
- SGLang
How to use prithivMLmods/Viper-Coder-v1.1 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 "prithivMLmods/Viper-Coder-v1.1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Viper-Coder-v1.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "prithivMLmods/Viper-Coder-v1.1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Viper-Coder-v1.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/Viper-Coder-v1.1 with Docker Model Runner:
docker model run hf.co/prithivMLmods/Viper-Coder-v1.1
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,6 +11,7 @@ tags:
|
|
| 11 |
- text-generation-inference
|
| 12 |
- trl
|
| 13 |
- coder
|
|
|
|
| 14 |
model-index:
|
| 15 |
- name: Viper-Coder-v1.1
|
| 16 |
results:
|
|
@@ -28,7 +29,8 @@ model-index:
|
|
| 28 |
value: 44.32
|
| 29 |
name: averaged accuracy
|
| 30 |
source:
|
| 31 |
-
url:
|
|
|
|
| 32 |
name: Open LLM Leaderboard
|
| 33 |
- task:
|
| 34 |
type: text-generation
|
|
@@ -44,7 +46,8 @@ model-index:
|
|
| 44 |
value: 49.27
|
| 45 |
name: normalized accuracy
|
| 46 |
source:
|
| 47 |
-
url:
|
|
|
|
| 48 |
name: Open LLM Leaderboard
|
| 49 |
- task:
|
| 50 |
type: text-generation
|
|
@@ -60,7 +63,8 @@ model-index:
|
|
| 60 |
value: 54.61
|
| 61 |
name: exact match
|
| 62 |
source:
|
| 63 |
-
url:
|
|
|
|
| 64 |
name: Open LLM Leaderboard
|
| 65 |
- task:
|
| 66 |
type: text-generation
|
|
@@ -76,7 +80,8 @@ model-index:
|
|
| 76 |
value: 20.13
|
| 77 |
name: acc_norm
|
| 78 |
source:
|
| 79 |
-
url:
|
|
|
|
| 80 |
name: Open LLM Leaderboard
|
| 81 |
- task:
|
| 82 |
type: text-generation
|
|
@@ -91,7 +96,8 @@ model-index:
|
|
| 91 |
value: 26.21
|
| 92 |
name: acc_norm
|
| 93 |
source:
|
| 94 |
-
url:
|
|
|
|
| 95 |
name: Open LLM Leaderboard
|
| 96 |
- task:
|
| 97 |
type: text-generation
|
|
@@ -108,7 +114,8 @@ model-index:
|
|
| 108 |
value: 47.02
|
| 109 |
name: accuracy
|
| 110 |
source:
|
| 111 |
-
url:
|
|
|
|
| 112 |
name: Open LLM Leaderboard
|
| 113 |
---
|
| 114 |
|
|
@@ -190,5 +197,4 @@ Summarized results can be found [here](https://huggingface.co/datasets/open-llm-
|
|
| 190 |
|MATH Lvl 5 (4-Shot)| 54.61|
|
| 191 |
|GPQA (0-shot) | 20.13|
|
| 192 |
|MuSR (0-shot) | 26.21|
|
| 193 |
-
|MMLU-PRO (5-shot) | 47.02|
|
| 194 |
-
|
|
|
|
| 11 |
- text-generation-inference
|
| 12 |
- trl
|
| 13 |
- coder
|
| 14 |
+
- v1.1
|
| 15 |
model-index:
|
| 16 |
- name: Viper-Coder-v1.1
|
| 17 |
results:
|
|
|
|
| 29 |
value: 44.32
|
| 30 |
name: averaged accuracy
|
| 31 |
source:
|
| 32 |
+
url: >-
|
| 33 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FViper-Coder-v1.1
|
| 34 |
name: Open LLM Leaderboard
|
| 35 |
- task:
|
| 36 |
type: text-generation
|
|
|
|
| 46 |
value: 49.27
|
| 47 |
name: normalized accuracy
|
| 48 |
source:
|
| 49 |
+
url: >-
|
| 50 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FViper-Coder-v1.1
|
| 51 |
name: Open LLM Leaderboard
|
| 52 |
- task:
|
| 53 |
type: text-generation
|
|
|
|
| 63 |
value: 54.61
|
| 64 |
name: exact match
|
| 65 |
source:
|
| 66 |
+
url: >-
|
| 67 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FViper-Coder-v1.1
|
| 68 |
name: Open LLM Leaderboard
|
| 69 |
- task:
|
| 70 |
type: text-generation
|
|
|
|
| 80 |
value: 20.13
|
| 81 |
name: acc_norm
|
| 82 |
source:
|
| 83 |
+
url: >-
|
| 84 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FViper-Coder-v1.1
|
| 85 |
name: Open LLM Leaderboard
|
| 86 |
- task:
|
| 87 |
type: text-generation
|
|
|
|
| 96 |
value: 26.21
|
| 97 |
name: acc_norm
|
| 98 |
source:
|
| 99 |
+
url: >-
|
| 100 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FViper-Coder-v1.1
|
| 101 |
name: Open LLM Leaderboard
|
| 102 |
- task:
|
| 103 |
type: text-generation
|
|
|
|
| 114 |
value: 47.02
|
| 115 |
name: accuracy
|
| 116 |
source:
|
| 117 |
+
url: >-
|
| 118 |
+
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FViper-Coder-v1.1
|
| 119 |
name: Open LLM Leaderboard
|
| 120 |
---
|
| 121 |
|
|
|
|
| 197 |
|MATH Lvl 5 (4-Shot)| 54.61|
|
| 198 |
|GPQA (0-shot) | 20.13|
|
| 199 |
|MuSR (0-shot) | 26.21|
|
| 200 |
+
|MMLU-PRO (5-shot) | 47.02|
|
|
|