Instructions to use Nibir5/antic-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nibir5/antic-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Nibir5/antic-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Nibir5/antic-model") model = AutoModelForCausalLM.from_pretrained("Nibir5/antic-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Nibir5/antic-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nibir5/antic-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nibir5/antic-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Nibir5/antic-model
- SGLang
How to use Nibir5/antic-model 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 "Nibir5/antic-model" \ --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": "Nibir5/antic-model", "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 "Nibir5/antic-model" \ --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": "Nibir5/antic-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Nibir5/antic-model with Docker Model Runner:
docker model run hf.co/Nibir5/antic-model
Commit History
-
Update README.md
Verified signature2fec34d -
Update README.md
Verified signature99cfd12
-
Rename model-00003-of-00003-002.safetensors to model-00003-of-00003.safetensors
Verified signature6ca1cd3 -
Rename model-00002-of-00003-001.safetensors to model-00002-of-00003.safetensors
Verified signature308fc74 -
Upload tokenizer_config.json
Verified signaturead7505f -
Upload tokenizer.model
Verified signature470a5f9 -
Upload tokenizer.json
Verified signature37ca9b8 -
Upload special_tokens_map.json
Verified signature2b1f708 -
Upload model.safetensors.index.json
Verified signaturec7cc149 -
Upload generation_config.json
Verified signature468bea0 -
Upload config.json
Verified signature6eb1b1c -
Upload added_tokens.json
Verified signature0de9021 -
Delete finetuned_model
Verified signatured4cb069
-
Upload model-00003-of-00003-002.safetensors
Verified signature3fdba7f -
Upload model-00002-of-00003-001.safetensors
Verified signatureed44461 -
Upload model-00001-of-00003.safetensors
Verified signaturefbd74a5
-
Upload 8 files
Verified signature5c012cc
-
initial commit
Verified signaturef135afb