Instructions to use Aananda-giri/clone with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Aananda-giri/clone with PEFT:
Task type is invalid.
- Transformers
How to use Aananda-giri/clone with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Aananda-giri/clone") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Aananda-giri/clone", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Aananda-giri/clone with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Aananda-giri/clone" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Aananda-giri/clone", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Aananda-giri/clone
- SGLang
How to use Aananda-giri/clone 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 "Aananda-giri/clone" \ --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": "Aananda-giri/clone", "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 "Aananda-giri/clone" \ --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": "Aananda-giri/clone", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Aananda-giri/clone with Docker Model Runner:
docker model run hf.co/Aananda-giri/clone
Download Crypto-adapters/training_args.bin from Aananda-giri/clone: direct link, hf CLI and curl.
- Browser
- Download file 6.23 kB
-
https://huggingface.co/Aananda-giri/clone/resolve/main/Crypto-adapters/training_args.bin
- Command line
-
hf download hf://Aananda-giri/clone/Crypto-adapters/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/Aananda-giri/clone/resolve/main/Crypto-adapters/training_args.bin
6.23 kB
- Xet hash:
- c56d54c9d28afde139f8a1466156b1c01203023b5af774848ac2534a0888c2a6
- Size of remote file:
- 6.23 kB
- SHA256:
- c545c10c0f16ad53a06e19e15dad68399da0e7947fe7e1da741ad9af8c4c1e8d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.