Text Generation
Transformers
English
codva1
IT
chat
LLM
code
coding
math
Mixture of Experts
instruction-tuned
gqa
rope
custom-architecture
custom_code
Instructions to use Smilyai-labs/CodVa-1-Small-IT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Smilyai-labs/CodVa-1-Small-IT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Smilyai-labs/CodVa-1-Small-IT", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Smilyai-labs/CodVa-1-Small-IT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Smilyai-labs/CodVa-1-Small-IT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Smilyai-labs/CodVa-1-Small-IT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Smilyai-labs/CodVa-1-Small-IT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Smilyai-labs/CodVa-1-Small-IT
- SGLang
How to use Smilyai-labs/CodVa-1-Small-IT 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 "Smilyai-labs/CodVa-1-Small-IT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Smilyai-labs/CodVa-1-Small-IT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Smilyai-labs/CodVa-1-Small-IT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Smilyai-labs/CodVa-1-Small-IT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Smilyai-labs/CodVa-1-Small-IT with Docker Model Runner:
docker model run hf.co/Smilyai-labs/CodVa-1-Small-IT
Commit History
-
Create generation_config.json
c9066c2 -
Create tokenizer_config.json
814f3de -
Remove checkpoint: tokenizer_config.json
598ba00 -
Remove checkpoint: generation_config.json
82c8d23 -
Update README.md
7644bfa -
Update README.md
0d8ef41 -
Create LICENSE.txt
fc9013f -
Update README.md
8fed71f
-
Update modeling_codva1.py
4967c05 -
Rename tokeniser.json to tokenizer.json
268f3d5 -
Create README.md
7b48985 -
Create tokeniser.json
e1e5b53 -
Create tokenizer_config.json
4e68398 -
Create modeling_codva1.py
d06b85c -
Create special_tokens_map.json
db11dd6 -
Create generation_config.json
a8af181 -
Create configuration_codva1.py
44928d5 -
Create config.json
2ea1025 -
Delete codva_final_s0009404_config.json
be89de7 -
Delete report_s9404.json
c765303 -
Delete codva_latest_s0009404.meta.pt
9094d19 -
Delete codva_best_s0009400.meta.pt with huggingface_hub
e3c9e38 -
Delete codva_best_s0009200.meta.pt with huggingface_hub
322e93d -
Delete codva_best_s0009000.meta.pt with huggingface_hub
2e7b43d -
Delete codva_best_s0008800.meta.pt with huggingface_hub
e51b9d0 -
Delete codva_best_s0008600.meta.pt with huggingface_hub
6c0b4ce -
Delete codva_best_s0008400.meta.pt with huggingface_hub
28774d1 -
Delete codva_best_s0008200.meta.pt with huggingface_hub
923f71b -
Delete codva_best_s0008000.meta.pt with huggingface_hub
b05bf50 -
Delete codva_best_s0007800.meta.pt with huggingface_hub
9b32cfe -
Delete codva_best_s0007600.meta.pt with huggingface_hub
22aba99 -
Delete codva_best_s0007400.meta.pt with huggingface_hub
14ad677 -
Delete codva_best_s0007200.meta.pt with huggingface_hub
e88240c -
Delete codva_best_s0007000.meta.pt with huggingface_hub
851e43f -
Delete codva_best_s0006800.meta.pt with huggingface_hub
4c2a270 -
Delete codva_best_s0006600.meta.pt with huggingface_hub
895c59d -
Delete codva_best_s0006400.meta.pt with huggingface_hub
15666a1 -
Delete codva_best_s0006200.meta.pt with huggingface_hub
11e66de -
Delete codva_ckpt_s0009400.meta.pt with huggingface_hub
1bf18fe -
Delete codva_ckpt_s0009347.meta.pt with huggingface_hub
ef69eb8 -
Delete codva_ckpt_s0009341.meta.pt with huggingface_hub
50893f7 -
Delete codva_ckpt_s0009200.meta.pt with huggingface_hub
1112081 -
Delete codva_ckpt_s0009114.meta.pt with huggingface_hub
8b561ec -
Delete codva_ckpt_s0009060.meta.pt with huggingface_hub
936a2d0 -
Delete codva_ckpt_s0009000.meta.pt with huggingface_hub
2e6a78c -
Delete codva_ckpt_s0008902.meta.pt with huggingface_hub
a2988aa -
Delete codva_ckpt_s0008800.meta.pt with huggingface_hub
4e4f9cb -
Delete codva_ckpt_s0008789.meta.pt with huggingface_hub
aa43137 -
Delete codva_ckpt_s0008691.meta.pt with huggingface_hub
b5292c2 -
Delete codva_ckpt_s0008600.meta.pt with huggingface_hub
3296a19