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
|
@@ -12,6 +12,7 @@ license: apache-2.0
|
|
| 12 |
|
| 13 |
<div align="center">
|
| 14 |
<a href="https://huggingface.co/wyt2000/CodeV-SVA-14B"><img src="https://img.shields.io/static/v1?label=Model&message=HuggingFace&color=yellow"></a>  
|
|
|
|
| 15 |
</div>
|
| 16 |
|
| 17 |
## Introduction
|
|
@@ -21,9 +22,9 @@ We introduce CodeV-SVA, a family of large language models designed to translate
|
|
| 21 |
Open-Source Plan:
|
| 22 |
|
| 23 |
- Model ✓
|
|
|
|
| 24 |
- Paper
|
| 25 |
- Dataset
|
| 26 |
-
- Evaluation code
|
| 27 |
- Data synthesis and training code
|
| 28 |
|
| 29 |
## Evaluation Results
|
|
@@ -47,7 +48,7 @@ Open-Source Plan:
|
|
| 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 |
|
|
|
|
| 12 |
|
| 13 |
<div align="center">
|
| 14 |
<a href="https://huggingface.co/wyt2000/CodeV-SVA-14B"><img src="https://img.shields.io/static/v1?label=Model&message=HuggingFace&color=yellow"></a>  
|
| 15 |
+
<a href="https://github.com/wyt2000/CodeV-SVA"><img src="https://img.shields.io/static/v1?label=Code&message=Github&color=blue"></a>  
|
| 16 |
</div>
|
| 17 |
|
| 18 |
## Introduction
|
|
|
|
| 22 |
Open-Source Plan:
|
| 23 |
|
| 24 |
- Model ✓
|
| 25 |
+
- Evaluation code ✓
|
| 26 |
- Paper
|
| 27 |
- Dataset
|
|
|
|
| 28 |
- Data synthesis and training code
|
| 29 |
|
| 30 |
## Evaluation Results
|
|
|
|
| 48 |
| SVACoder-8B | 72.0 | 88.8 | <u>90.4</u> | | 83.5 | **96.3** | **97.2** |
|
| 49 |
| SVACoder-14B | **75.8** | 89.4 | <u>90.4</u> | | **84.0** | <u>94.9</u> | <u>95.8</u> |
|
| 50 |
|
| 51 |
+
See our GitHub [repo](https://github.com/wyt2000/CodeV-SVA/?tab=readme-ov-file#evaluation) for reproduction.
|
| 52 |
|
| 53 |
## Models
|
| 54 |
|