Instructions to use pradeep4321/model2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pradeep4321/model2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pradeep4321/model2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pradeep4321/model2") model = AutoModelForCausalLM.from_pretrained("pradeep4321/model2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pradeep4321/model2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pradeep4321/model2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pradeep4321/model2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pradeep4321/model2
- SGLang
How to use pradeep4321/model2 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 "pradeep4321/model2" \ --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": "pradeep4321/model2", "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 "pradeep4321/model2" \ --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": "pradeep4321/model2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pradeep4321/model2 with Docker Model Runner:
docker model run hf.co/pradeep4321/model2
Commit History
-
Upload model
8212d34 -
Training in progress epoch 0
b90c730
-
Upload model
0e0c5dd -
Upload model
ff5a3c5 -
Training in progress epoch 47
a6ae19b -
Training in progress epoch 46
569629b -
Training in progress epoch 45
4b9b778 -
Training in progress epoch 44
364bce0 -
Training in progress epoch 43
d057856 -
Training in progress epoch 42
05c274d -
Training in progress epoch 35
f49269f -
Training in progress epoch 26
fae7efb -
Training in progress epoch 25
0ab8c05 -
Training in progress epoch 24
177acd2 -
Training in progress epoch 23
f342b3b -
Training in progress epoch 22
cc78a45 -
Training in progress epoch 21
f60ff52 -
Training in progress epoch 20
4b49919 -
Training in progress epoch 19
a249003 -
Training in progress epoch 12
f5679ed -
Training in progress epoch 11
33e2883 -
Training in progress epoch 10
86d335b -
Training in progress epoch 9
e4d7a0e -
Training in progress epoch 8
1a90539 -
Training in progress epoch 7
b765a13 -
Training in progress epoch 6
fc32478 -
Training in progress epoch 5
32bb0d6 -
Training in progress epoch 1
6075fb3 -
Training in progress epoch 0
e0f550e -
Training in progress epoch 9
04eef26 -
Training in progress epoch 3
2da2773 -
Training in progress epoch 2
6e94a15 -
Training in progress epoch 1
98625e9 -
Training in progress epoch 0
72ac3a4 -
initial commit
15fdadb