Instructions to use mvasiliniuc/iva-codeint-swift-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mvasiliniuc/iva-codeint-swift-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mvasiliniuc/iva-codeint-swift-small")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mvasiliniuc/iva-codeint-swift-small") model = AutoModelForCausalLM.from_pretrained("mvasiliniuc/iva-codeint-swift-small") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use mvasiliniuc/iva-codeint-swift-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mvasiliniuc/iva-codeint-swift-small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mvasiliniuc/iva-codeint-swift-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mvasiliniuc/iva-codeint-swift-small
- SGLang
How to use mvasiliniuc/iva-codeint-swift-small 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 "mvasiliniuc/iva-codeint-swift-small" \ --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": "mvasiliniuc/iva-codeint-swift-small", "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 "mvasiliniuc/iva-codeint-swift-small" \ --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": "mvasiliniuc/iva-codeint-swift-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mvasiliniuc/iva-codeint-swift-small with Docker Model Runner:
docker model run hf.co/mvasiliniuc/iva-codeint-swift-small
Commit ·
da89df4
1
Parent(s): ba75a47
Add Genial Watter Model
Browse files- pytorch_model.bin +1 -1
- step_149999/custom_checkpoint_0.pkl +3 -0
- step_149999/optimizer.bin +3 -0
- step_149999/pytorch_model.bin +3 -0
- step_149999/random_states_0.pkl +3 -0
- step_149999/scaler.pt +3 -0
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 957817757
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1992402dea4560ff24d66f121580be6d9fa03e22a96cc7f85ee9201c98c971e
|
| 3 |
size 957817757
|
step_149999/custom_checkpoint_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91513fbe09bf30aff5b6ebc3e7e1b577991a65c8a694e4e092052b93a1e2718b
|
| 3 |
+
size 647
|
step_149999/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19ab5e57a1a9abfec783a635936edfa01441e86cd36255ab47c99e2e9b16368f
|
| 3 |
+
size 1915662853
|
step_149999/pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:29b5bd79336cf86ffbbe93590038b541178abde0909e2981b037c70d472cf1f0
|
| 3 |
+
size 957825629
|
step_149999/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ff43fb074d48f3719d635c8099f8b3237e5608a274f114c521e03ad776b4a7a
|
| 3 |
+
size 14663
|
step_149999/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f53e0c48af7dee4dd944e1ecc7d388e18d88dfc9db8ca7e3cbdd4a4165da2e7
|
| 3 |
+
size 557
|