Instructions to use MILVLG/imp-v1-3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MILVLG/imp-v1-3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MILVLG/imp-v1-3b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("MILVLG/imp-v1-3b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MILVLG/imp-v1-3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MILVLG/imp-v1-3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MILVLG/imp-v1-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MILVLG/imp-v1-3b
- SGLang
How to use MILVLG/imp-v1-3b 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 "MILVLG/imp-v1-3b" \ --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": "MILVLG/imp-v1-3b", "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 "MILVLG/imp-v1-3b" \ --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": "MILVLG/imp-v1-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MILVLG/imp-v1-3b with Docker Model Runner:
docker model run hf.co/MILVLG/imp-v1-3b
Commit History
-
Update README.md
Verified signature634c7fc
-
update phi-2 version
989a1a3
-
Delete test.py
Verified signature671cf99
-
update v1
6224cf2
-
Update README.md
Verified signature644b2fc
-
Update README.md
Verified signature30266c3
-
Update README.md
Verified signature13f37aa
-
update model files
6a62d0f
-
Delete pytorch_model.bin.index.json
Verified signature6072038 -
Delete pytorch_model-00002-of-00002.bin
Verified signature18bd7c1 -
Delete pytorch_model-00001-of-00002.bin
Verified signaturef3ad41f
-
Update README.md
Verified signaturebf977bc
-
Adding `safetensors` variant of this model (#2)
Verified signature- Adding `safetensors` variant of this model (5fe7773bbaa3a9c6aa7c69b68560c5db883d78d3) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>965eff8
-
Update README.md
Verified signaturecb59e44 -
Update README.md
Verified signature9dc617e -
Update README.md
Verified signatureb14f4e7
-
Update README.md
Verified signatureb473077 -
update install denpendencies
23bd24d -
update install dependencies
8571030 -
update install dependencies
3debb8c -
Update README.md
Verified signatureaae95c7
-
Update README.md
Verified signature7d7bc74 -
Update README.md
Verified signaturec8b50ec -
update encoder_config
3c9c49b -
Update README.md
Verified signaturebf3351d -
update v1
4ce8cd3
-
Update README.md
Verified signature04f89c5 -
update
e2280a8 -
Update README.md
Verified signature44a61bd -
Update README.md
Verified signatureb1425ca -
Update README.md
Verified signature11f5487 -
update
6f78f66 -
Update README.md
Verified signaturea6da6b8 -
Merge branch 'main' of https://huggingface.co/MILVLG/Imp-v0-3b into main
5843de5 -
Update README.md
Verified signatured6b23f9 -
update
090ee1c -
Update README.md
Verified signaturedc983b7 -
Merge branch 'main' of https://huggingface.co/MILVLG/Imp-v0-3b into main
02dee01 -
Update README.md
Verified signature03f5aa0 -
Update README.md
Verified signaturecf5e052 -
update
7b03926 -
Update README.md
Verified signature3c18282 -
update
4afa441 -
update
e6f6455 -
update
dc25072 -
update
0237df9 -
update
1f1bb49 -
update
a134646 -
update
a895cd8 -
initial commit
Verified signaturefd198a3