Text Generation
Transformers
Safetensors
llama
code
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use wyt2000/InverseCoder-CL-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wyt2000/InverseCoder-CL-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wyt2000/InverseCoder-CL-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("wyt2000/InverseCoder-CL-7B") model = AutoModelForCausalLM.from_pretrained("wyt2000/InverseCoder-CL-7B") 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
- vLLM
How to use wyt2000/InverseCoder-CL-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wyt2000/InverseCoder-CL-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wyt2000/InverseCoder-CL-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wyt2000/InverseCoder-CL-7B
- SGLang
How to use wyt2000/InverseCoder-CL-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 "wyt2000/InverseCoder-CL-7B" \ --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": "wyt2000/InverseCoder-CL-7B", "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 "wyt2000/InverseCoder-CL-7B" \ --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": "wyt2000/InverseCoder-CL-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wyt2000/InverseCoder-CL-7B with Docker Model Runner:
docker model run hf.co/wyt2000/InverseCoder-CL-7B
Merge branch 'main' of https://huggingface.co/wyt2000/InverseCoder-CL-7B
Browse files
README.md
CHANGED
|
@@ -1,5 +1,146 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: llama2
|
| 3 |
-
license_name: deepseek
|
| 4 |
-
license_link: LICENSE
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: llama2
|
| 3 |
+
license_name: deepseek
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
datasets:
|
| 6 |
+
- ise-uiuc/Magicoder-Evol-Instruct-110K
|
| 7 |
+
library_name: transformers
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
tags:
|
| 10 |
+
- code
|
| 11 |
+
model-index:
|
| 12 |
+
- name: InverseCoder-CL-7B
|
| 13 |
+
results:
|
| 14 |
+
- task:
|
| 15 |
+
type: text-generation
|
| 16 |
+
dataset:
|
| 17 |
+
type: openai_humaneval
|
| 18 |
+
name: HumanEval
|
| 19 |
+
metrics:
|
| 20 |
+
- name: pass@1
|
| 21 |
+
type: pass@1
|
| 22 |
+
value: 0.762
|
| 23 |
+
verified: false
|
| 24 |
+
|
| 25 |
+
- task:
|
| 26 |
+
type: text-generation
|
| 27 |
+
dataset:
|
| 28 |
+
type: openai_humaneval
|
| 29 |
+
name: HumanEval(+)
|
| 30 |
+
metrics:
|
| 31 |
+
- name: pass@1
|
| 32 |
+
type: pass@1
|
| 33 |
+
value: 0.720
|
| 34 |
+
verified: false
|
| 35 |
+
|
| 36 |
+
- task:
|
| 37 |
+
type: text-generation
|
| 38 |
+
dataset:
|
| 39 |
+
type: mbpp
|
| 40 |
+
name: MBPP
|
| 41 |
+
metrics:
|
| 42 |
+
- name: pass@1
|
| 43 |
+
type: pass@1
|
| 44 |
+
value: 0.706
|
| 45 |
+
verified: false
|
| 46 |
+
|
| 47 |
+
- task:
|
| 48 |
+
type: text-generation
|
| 49 |
+
dataset:
|
| 50 |
+
type: mbpp
|
| 51 |
+
name: MBPP(+)
|
| 52 |
+
metrics:
|
| 53 |
+
- name: pass@1
|
| 54 |
+
type: pass@1
|
| 55 |
+
value: 0.601
|
| 56 |
+
verified: false
|
| 57 |
+
|
| 58 |
+
- task:
|
| 59 |
+
type: text-generation
|
| 60 |
+
dataset:
|
| 61 |
+
type: ds1000
|
| 62 |
+
name: DS-1000 (Overall Completion)
|
| 63 |
+
metrics:
|
| 64 |
+
- name: pass@1
|
| 65 |
+
type: pass@1
|
| 66 |
+
value: 0.399
|
| 67 |
+
verified: false
|
| 68 |
+
|
| 69 |
+
- task:
|
| 70 |
+
type: text-generation
|
| 71 |
+
dataset:
|
| 72 |
+
type: nuprl/MultiPL-E
|
| 73 |
+
name: MultiPL-HumanEval (Java)
|
| 74 |
+
metrics:
|
| 75 |
+
- name: pass@1
|
| 76 |
+
type: pass@1
|
| 77 |
+
value: 0.487
|
| 78 |
+
verified: false
|
| 79 |
+
|
| 80 |
+
- task:
|
| 81 |
+
type: text-generation
|
| 82 |
+
dataset:
|
| 83 |
+
type: nuprl/MultiPL-E
|
| 84 |
+
name: MultiPL-HumanEval (JavaScript)
|
| 85 |
+
metrics:
|
| 86 |
+
- name: pass@1
|
| 87 |
+
type: pass@1
|
| 88 |
+
value: 0.619
|
| 89 |
+
verified: false
|
| 90 |
+
|
| 91 |
+
- task:
|
| 92 |
+
type: text-generation
|
| 93 |
+
dataset:
|
| 94 |
+
type: nuprl/MultiPL-E
|
| 95 |
+
name: MultiPL-HumanEval (C++)
|
| 96 |
+
metrics:
|
| 97 |
+
- name: pass@1
|
| 98 |
+
type: pass@1
|
| 99 |
+
value: 0.526
|
| 100 |
+
verified: false
|
| 101 |
+
|
| 102 |
+
- task:
|
| 103 |
+
type: text-generation
|
| 104 |
+
dataset:
|
| 105 |
+
type: nuprl/MultiPL-E
|
| 106 |
+
name: MultiPL-HumanEval (PHP)
|
| 107 |
+
metrics:
|
| 108 |
+
- name: pass@1
|
| 109 |
+
type: pass@1
|
| 110 |
+
value: 0.552
|
| 111 |
+
verified: false
|
| 112 |
+
|
| 113 |
+
- task:
|
| 114 |
+
type: text-generation
|
| 115 |
+
dataset:
|
| 116 |
+
type: nuprl/MultiPL-E
|
| 117 |
+
name: MultiPL-HumanEval (Swift)
|
| 118 |
+
metrics:
|
| 119 |
+
- name: pass@1
|
| 120 |
+
type: pass@1
|
| 121 |
+
value: 0.530
|
| 122 |
+
verified: false
|
| 123 |
+
|
| 124 |
+
- task:
|
| 125 |
+
type: text-generation
|
| 126 |
+
dataset:
|
| 127 |
+
type: nuprl/MultiPL-E
|
| 128 |
+
name: MultiPL-HumanEval (Rust)
|
| 129 |
+
metrics:
|
| 130 |
+
- name: pass@1
|
| 131 |
+
type: pass@1
|
| 132 |
+
value: 0.461
|
| 133 |
+
verified: false
|
| 134 |
+
|
| 135 |
+
- task:
|
| 136 |
+
type: text-generation
|
| 137 |
+
dataset:
|
| 138 |
+
type: nuprl/MultiPL-E
|
| 139 |
+
name: MultiPL-HumanEval (Average for non-python languages)
|
| 140 |
+
metrics:
|
| 141 |
+
- name: pass@1
|
| 142 |
+
type: pass@1
|
| 143 |
+
value: 0.529
|
| 144 |
+
verified: false
|
| 145 |
+
|
| 146 |
+
---
|