Instructions to use rktimsardar/CSE_2nd_Sem_Materials with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rktimsardar/CSE_2nd_Sem_Materials with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rktimsardar/CSE_2nd_Sem_Materials")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("rktimsardar/CSE_2nd_Sem_Materials", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rktimsardar/CSE_2nd_Sem_Materials with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rktimsardar/CSE_2nd_Sem_Materials" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rktimsardar/CSE_2nd_Sem_Materials", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rktimsardar/CSE_2nd_Sem_Materials
- SGLang
How to use rktimsardar/CSE_2nd_Sem_Materials 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 "rktimsardar/CSE_2nd_Sem_Materials" \ --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": "rktimsardar/CSE_2nd_Sem_Materials", "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 "rktimsardar/CSE_2nd_Sem_Materials" \ --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": "rktimsardar/CSE_2nd_Sem_Materials", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rktimsardar/CSE_2nd_Sem_Materials with Docker Model Runner:
docker model run hf.co/rktimsardar/CSE_2nd_Sem_Materials
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
license: mit
|
| 4 |
+
tags:
|
| 5 |
+
- test
|
| 6 |
+
- example
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
library_name: transformers
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# 🚀 Test Model Card
|
| 12 |
+
|
| 13 |
+
This is a **sample model page** to test layout and metadata display.
|
| 14 |
+
|
| 15 |
+
## 🧠 Model Details
|
| 16 |
+
- Author: `rktimsardar`
|
| 17 |
+
- Framework: `Transformers`
|
| 18 |
+
- Type: Demo
|
| 19 |
+
- Uploaded: 2025-10-26
|
| 20 |
+
|
| 21 |
+
## 💡 Example Usage
|
| 22 |
+
```python
|
| 23 |
+
from transformers import pipeline
|
| 24 |
+
pipe = pipeline("text-generation", model="rktimsardar/test-model")
|
| 25 |
+
print(pipe("Hello world"))
|