Views
No views yet


| Base Model | CodeV | |
|---|---|---|
| 6.7B | deepseek-ai/deepseek-coder-6.7b-base | yang-z/CodeV-DS-6.7B |
| 7B | codellama/CodeLlama-7b-Python-hf | yang-z/CodeV-CL-7B |
| 7B | Qwen/CodeQwen1.5-7B-Chat | yang-z/CodeV-QW-7B |
1from transformers import pipeline
2
3import torch
4
5
6
7prompt= "FILL IN THE QUESTION"
8
9
10
11generator = pipeline(
12
13 model="CODEV",
14
15 task="text-generation",
16
17 torch_dtype=torch.bfloat16,
18
19 device_map="auto",
20
21)
22
23
24
25result = generator(prompt , max_length=2048, num_return_sequences=1, temperature=0.0)
26
27response = result[0]["generated_text"]
28
29print("Response:", response)@misc{yang-z,
title={CodeV: Empowering LLMs for Verilog Generation through Multi-Level Summarization},
author={Yang Zhao and Di Huang and Chongxiao Li and Pengwei Jin and Ziyuan Nan and Tianyun Ma and Lei Qi and Yansong Pan and Zhenxing Zhang and Rui Zhang and Xishan Zhang and Zidong Du and Qi Guo and Xing Hu and Yunji Chen},
year={2024},
eprint={2407.10424},
archivePrefix={arXiv},
primaryClass={cs.PL},
url={https://arxiv.org/abs/2407.10424},
}