Text Generation
Transformers
Safetensors
English
qwen3
chat
conversational
text-generation-inference
Instructions to use wyt2000/CodeV-SVA-14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wyt2000/CodeV-SVA-14B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wyt2000/CodeV-SVA-14B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("wyt2000/CodeV-SVA-14B") model = AutoModelForCausalLM.from_pretrained("wyt2000/CodeV-SVA-14B") 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-14B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wyt2000/CodeV-SVA-14B" # 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-14B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wyt2000/CodeV-SVA-14B
- SGLang
How to use wyt2000/CodeV-SVA-14B 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-14B" \ --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-14B", "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-14B" \ --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-14B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wyt2000/CodeV-SVA-14B with Docker Model Runner:
docker model run hf.co/wyt2000/CodeV-SVA-14B
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,47 +1,50 @@
|
|
| 1 |
-
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
-
#
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
##
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
##
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
## Training procedure
|
| 21 |
|
| 22 |
-
##
|
| 23 |
|
| 24 |
-
|
| 25 |
-
- learning_rate: 2e-05
|
| 26 |
-
- train_batch_size: 1
|
| 27 |
-
- eval_batch_size: 8
|
| 28 |
-
- seed: 42
|
| 29 |
-
- distributed_type: multi-GPU
|
| 30 |
-
- num_devices: 8
|
| 31 |
-
- gradient_accumulation_steps: 16
|
| 32 |
-
- total_train_batch_size: 128
|
| 33 |
-
- total_eval_batch_size: 64
|
| 34 |
-
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 35 |
-
- lr_scheduler_type: cosine
|
| 36 |
-
- num_epochs: 2.0
|
| 37 |
|
| 38 |
-
##
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
base_model: Qwen/Qwen3-14B
|
| 5 |
+
tags:
|
| 6 |
+
- chat
|
| 7 |
+
library_name: transformers
|
| 8 |
+
license: apache-2.0
|
| 9 |
+
---
|
| 10 |
|
| 11 |
+
# CodeV-SVA: Training Specialized LLMs for Hardware Assertion Generation via RTL-Grounded Bidirectional Data Synthesis
|
| 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
|
| 18 |
|
| 19 |
+
We introduce CodeV-SVA, a family of large language models designed to translate natural-language verification properties into SystemVerilog Assertions (SVAs).
|
| 20 |
|
| 21 |
+
Open-Source Plan:
|
| 22 |
|
| 23 |
+
- Model ✓
|
| 24 |
+
- Paper
|
| 25 |
+
- Dataset
|
| 26 |
+
- Evaluation code
|
| 27 |
+
- Data synthesis and training code
|
| 28 |
|
| 29 |
+
## Models
|
| 30 |
|
| 31 |
+
| Model | Download |
|
| 32 |
+
| -------- | -------- |
|
| 33 |
+
| CodeV-SVA-8B | [🤗HuggingFace](https://huggingface.co/wyt2000/CodeV-SVA-8B) |
|
| 34 |
+
| CodeV-SVA-14B | [🤗HuggingFace](https://huggingface.co/wyt2000/CodeV-SVA-14B) |
|
| 35 |
|
|
|
|
| 36 |
|
| 37 |
+
## Usage
|
| 38 |
|
| 39 |
+
See [`inference.py`](https://huggingface.co/wyt2000/SVACoder-14B/blob/main/inference.py).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
## Citation
|
| 42 |
|
| 43 |
+
```latex
|
| 44 |
+
@misc{CodeV-SVA,
|
| 45 |
+
title={CodeV-SVA: Training Specialized LLMs for Hardware Assertion Generation via RTL-Grounded Bidirectional Data Synthesis},
|
| 46 |
+
author={Yutong Wu and Chenrui Cao and Pengwei Jin and Di Huang and Rui Zhang and Xishan Zhang and Zidong Du and Qi Guo and Xing Hu},
|
| 47 |
+
year={2025},
|
| 48 |
+
howpublished={\url{https://huggingface.co/wyt2000/CodeV-SVA-14B}},
|
| 49 |
+
}
|
| 50 |
+
```
|