Instructions to use Sujithadr/Falc-Lora-imdb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sujithadr/Falc-Lora-imdb with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sujithadr/Falc-Lora-imdb")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Sujithadr/Falc-Lora-imdb", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sujithadr/Falc-Lora-imdb with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sujithadr/Falc-Lora-imdb" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sujithadr/Falc-Lora-imdb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Sujithadr/Falc-Lora-imdb
- SGLang
How to use Sujithadr/Falc-Lora-imdb 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 "Sujithadr/Falc-Lora-imdb" \ --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": "Sujithadr/Falc-Lora-imdb", "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 "Sujithadr/Falc-Lora-imdb" \ --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": "Sujithadr/Falc-Lora-imdb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Sujithadr/Falc-Lora-imdb with Docker Model Runner:
docker model run hf.co/Sujithadr/Falc-Lora-imdb
Update README.md
Browse files
README.md
CHANGED
|
@@ -23,7 +23,7 @@ This model is based on the Falcon-RW-1B pretrained causal language model, fine-t
|
|
| 23 |
|
| 24 |
### Model Sources
|
| 25 |
|
| 26 |
-
- **Repository:**
|
| 27 |
- **Base model:** https://huggingface.co/tiiuae/falcon-rw-1b
|
| 28 |
- **Dataset:** IMDb movie reviews — https://huggingface.co/datasets/imdb
|
| 29 |
|
|
@@ -125,4 +125,4 @@ If you use this model, please cite:
|
|
| 125 |
|
| 126 |
## Model Card Contact
|
| 127 |
|
| 128 |
-
-
|
|
|
|
| 23 |
|
| 24 |
### Model Sources
|
| 25 |
|
| 26 |
+
- **Repository:** Sujithadr/Falc-Lora-imdb
|
| 27 |
- **Base model:** https://huggingface.co/tiiuae/falcon-rw-1b
|
| 28 |
- **Dataset:** IMDb movie reviews — https://huggingface.co/datasets/imdb
|
| 29 |
|
|
|
|
| 125 |
|
| 126 |
## Model Card Contact
|
| 127 |
|
| 128 |
+
- sujith.adr@gmail.com
|