Text Generation
Transformers
Safetensors
English
qwen2
text-generation-inference
unsloth
conversational
Run this model with HF Jobs
Run sukatune/CodeVa-7B-Instruct-v1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/sukatune/CodeVa-7B-Instruct-v1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/sukatune/CodeVa-7B-Instruct-v1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/sukatune/CodeVa-7B-Instruct-v1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/sukatune/CodeVa-7B-Instruct-v1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use sukatune/CodeVa-7B-Instruct-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sukatune/CodeVa-7B-Instruct-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sukatune/CodeVa-7B-Instruct-v1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sukatune/CodeVa-7B-Instruct-v1") model = AutoModelForCausalLM.from_pretrained("sukatune/CodeVa-7B-Instruct-v1", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sukatune/CodeVa-7B-Instruct-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sukatune/CodeVa-7B-Instruct-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sukatune/CodeVa-7B-Instruct-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sukatune/CodeVa-7B-Instruct-v1
- SGLang
How to use sukatune/CodeVa-7B-Instruct-v1 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 "sukatune/CodeVa-7B-Instruct-v1" \ --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": "sukatune/CodeVa-7B-Instruct-v1", "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 "sukatune/CodeVa-7B-Instruct-v1" \ --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": "sukatune/CodeVa-7B-Instruct-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use sukatune/CodeVa-7B-Instruct-v1 with Docker Model Runner:
docker model run hf.co/sukatune/CodeVa-7B-Instruct-v1
(Trained with Unsloth)
Browse filesFiles changed (4)
- config.jsonAdded+61
- generation_config.jsonAdded+15
- tokenizer.json+2-2
- tokenizer_config.json+1-1
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "architectures": [ "Qwen2ForCausalLM" ], "attention_dropout": 0.0, "bos_token_id": 151643, "eos_token_id": 151645, "hidden_act": "silu", "hidden_size": 3584, "initializer_range": 0.02, "intermediate_size": 18944, "layer_types": [ "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention" ], "max_position_embeddings": 32768, "max_window_layers": 28, "model_type": "qwen2", "num_attention_heads": 28, "num_hidden_layers": 28, "num_key_value_heads": 4, "pad_token_id": 151665, "rms_norm_eps": 1e-06, "rope_scaling": null, "rope_theta": 1000000.0, "sliding_window": null, "tie_word_embeddings": false, "torch_dtype": "float16", "transformers_version": "4.55.0", "unsloth_fixed": true, "unsloth_version": "2025.8.1", "use_cache": true, "use_sliding_window": false, "vocab_size": 152064}123456789101112131415{ "bos_token_id": 151643, "do_sample": true, "eos_token_id": [ 151645, 151643 ], "max_length": 32768, "pad_token_id": 151665, "repetition_penalty": 1.1, "temperature": 0.7, "top_k": 20, "top_p": 0.8, "transformers_version": "4.55.0"}123version https://git-lfs.github.com/spec/v1oid sha256:a49c1b786ba7cd9c539085ebc8eb83025f6b16a7ce910a34b35957768c4b52a7size 11422185123version https://git-lfs.github.com/spec/v1oid sha256:fab42efe8d17406525a9154b728cf9e957629a8ed7ce997770efdd71128c6a1asize 11422086
208 unmodified lines209210211212213214215208 unmodified lines"extra_special_tokens": {},"model_max_length": 32768,"pad_token": "<|PAD_TOKEN|>","padding_side": "right","split_special_tokens": false,"tokenizer_class": "Qwen2Tokenizer","unk_token": null208 unmodified lines209210211212213214215208 unmodified lines"extra_special_tokens": {},"model_max_length": 32768,"pad_token": "<|PAD_TOKEN|>","padding_side": "left","split_special_tokens": false,"tokenizer_class": "Qwen2Tokenizer","unk_token": null
config.jsonAdded+61
generation_config.jsonAdded+15
tokenizer.json+2-2
tokenizer_config.json+1-1