Instructions to use rahulholla1/model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rahulholla1/model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rahulholla1/model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rahulholla1/model") model = AutoModelForCausalLM.from_pretrained("rahulholla1/model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rahulholla1/model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rahulholla1/model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rahulholla1/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rahulholla1/model
- SGLang
How to use rahulholla1/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 "rahulholla1/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": "rahulholla1/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 "rahulholla1/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": "rahulholla1/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rahulholla1/model with Docker Model Runner:
docker model run hf.co/rahulholla1/model
Update README.md
Browse files
README.md
CHANGED
|
@@ -46,7 +46,7 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
| 46 |
|
| 47 |
The model can be directly used to analyze stock option data and provide actionable trading insights based on the input provided. It can assist users in understanding key metrics such as implied volatility, option prices, technical indicators, and more, to make informed trading decisions.
|
| 48 |
|
| 49 |
-
### Downstream Use
|
| 50 |
|
| 51 |
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 52 |
|
|
@@ -67,9 +67,18 @@ Users should exercise caution and validate the model's predictions with addition
|
|
| 67 |
|
| 68 |
## How to Get Started with the Model
|
| 69 |
|
| 70 |
-
|
| 71 |
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
## Training Details
|
| 75 |
|
|
|
|
| 46 |
|
| 47 |
The model can be directly used to analyze stock option data and provide actionable trading insights based on the input provided. It can assist users in understanding key metrics such as implied volatility, option prices, technical indicators, and more, to make informed trading decisions.
|
| 48 |
|
| 49 |
+
### Downstream Use
|
| 50 |
|
| 51 |
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 52 |
|
|
|
|
| 67 |
|
| 68 |
## How to Get Started with the Model
|
| 69 |
|
| 70 |
+
# Getting Started with the Model
|
| 71 |
|
| 72 |
+
## Installation
|
| 73 |
+
|
| 74 |
+
Ensure that you have the `transformers` library installed. If not, you can install it via pip:
|
| 75 |
+
|
| 76 |
+
```bash
|
| 77 |
+
pip install transformers
|
| 78 |
+
|
| 79 |
+
You can load the model using the provided pipeline or directly with the AutoTokenizer and AutoModelForCausalLM classes from the transformers library.
|
| 80 |
+
Once the model is loaded, you can use it for text generation tasks. If you prefer a high-level interface, you can use the pipeline approach as well.
|
| 81 |
+
Alternatively, you can directly interact with the model using the tokenizer and model objects as well.
|
| 82 |
|
| 83 |
## Training Details
|
| 84 |
|