Text Generation
Transformers
Safetensors
English
qwen3
chat
conversational
text-generation-inference
Instructions to use wyt2000/CodeV-SVA-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wyt2000/CodeV-SVA-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wyt2000/CodeV-SVA-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("wyt2000/CodeV-SVA-8B") model = AutoModelForCausalLM.from_pretrained("wyt2000/CodeV-SVA-8B") 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 wyt2000/CodeV-SVA-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wyt2000/CodeV-SVA-8B" # 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/CodeV-SVA-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wyt2000/CodeV-SVA-8B
- SGLang
How to use wyt2000/CodeV-SVA-8B 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/CodeV-SVA-8B" \ --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/CodeV-SVA-8B", "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/CodeV-SVA-8B" \ --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/CodeV-SVA-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wyt2000/CodeV-SVA-8B with Docker Model Runner:
docker model run hf.co/wyt2000/CodeV-SVA-8B
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,6 +26,29 @@ Open-Source Plan:
|
|
| 26 |
- Evaluation code
|
| 27 |
- Data synthesis and training code
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
## Models
|
| 30 |
|
| 31 |
| Model | Download |
|
|
@@ -34,7 +57,6 @@ Open-Source Plan:
|
|
| 34 |
| CodeV-SVA-no-think-8B | [🤗HuggingFace](https://huggingface.co/wyt2000/CodeV-SVA-no-think-8B) |
|
| 35 |
| CodeV-SVA-14B | [🤗HuggingFace](https://huggingface.co/wyt2000/CodeV-SVA-14B) |
|
| 36 |
|
| 37 |
-
|
| 38 |
## Usage
|
| 39 |
|
| 40 |
````python
|
|
|
|
| 26 |
- Evaluation code
|
| 27 |
- Data synthesis and training code
|
| 28 |
|
| 29 |
+
## Evaluation Results
|
| 30 |
+
|
| 31 |
+
| Model | | NL2SVA-Human | | | | NL2SVA-Machine | |
|
| 32 |
+
| :-------------------- | :---------: | :----------: | :---------: | ---- | :---------: | :------------: | :---------: |
|
| 33 |
+
| | Func.@1 | Func.@16 | Func.@32 | | Func.@1 | Func.@16 | Func.@32 |
|
| 34 |
+
| | | | | | | | |
|
| 35 |
+
| DeepSeek-R1-671B | <u>74.6</u> | **90.3** | <u>90.4</u> | | 81.0 | 93.3 | 94.3 |
|
| 36 |
+
| GPT-5 | 71.8 | <u>90.2</u> | **92.7** | | 81.8 | 93.2 | 94.3 |
|
| 37 |
+
| DeepSeek-V3.1-671B | 63.1 | 81.4 | 84.9 | | <u>83.8</u> | 92.9 | 93.6 |
|
| 38 |
+
| GPT-4o | 64.1 | 75.2 | 78.1 | | 68.5 | 81.3 | 83.7 |
|
| 39 |
+
| | | | | | | | |
|
| 40 |
+
| RTLCoder-DS-v1.1-6.7B | 25.9 | 58.8 | 65.8 | | 21.7 | 54.8 | 60.8 |
|
| 41 |
+
| CodeV-R1-Qwen-7B | 25.2 | 55.8 | 61.6 | | 37.4 | 76.6 | 83.0 |
|
| 42 |
+
| | | | | | | | |
|
| 43 |
+
| Qwen3-8B | 32.3 | 71.6 | 74.0 | | 46.1 | 88.0 | 90.5 |
|
| 44 |
+
| Qwen3-14B | 61.6 | 86.1 | 87.7 | | 75.3 | 92.7 | 94.3 |
|
| 45 |
+
| | | | | | | | |
|
| 46 |
+
| SVACoder-no-think-8B | 65.8 | 84.4 | 86.3 | | 78.7 | 90.9 | 91.9 |
|
| 47 |
+
| SVACoder-8B | 72.0 | 88.8 | <u>90.4</u> | | 83.5 | **96.3** | **97.2** |
|
| 48 |
+
| SVACoder-14B | **75.8** | 89.4 | <u>90.4</u> | | **84.0** | <u>94.9</u> | <u>95.8</u> |
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
## Models
|
| 53 |
|
| 54 |
| Model | Download |
|
|
|
|
| 57 |
| CodeV-SVA-no-think-8B | [🤗HuggingFace](https://huggingface.co/wyt2000/CodeV-SVA-no-think-8B) |
|
| 58 |
| CodeV-SVA-14B | [🤗HuggingFace](https://huggingface.co/wyt2000/CodeV-SVA-14B) |
|
| 59 |
|
|
|
|
| 60 |
## Usage
|
| 61 |
|
| 62 |
````python
|