Instructions to use cansen88/PromptGenerator_32_topic_finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cansen88/PromptGenerator_32_topic_finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cansen88/PromptGenerator_32_topic_finetuned")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cansen88/PromptGenerator_32_topic_finetuned") model = AutoModelForCausalLM.from_pretrained("cansen88/PromptGenerator_32_topic_finetuned") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cansen88/PromptGenerator_32_topic_finetuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cansen88/PromptGenerator_32_topic_finetuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cansen88/PromptGenerator_32_topic_finetuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cansen88/PromptGenerator_32_topic_finetuned
- SGLang
How to use cansen88/PromptGenerator_32_topic_finetuned 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 "cansen88/PromptGenerator_32_topic_finetuned" \ --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": "cansen88/PromptGenerator_32_topic_finetuned", "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 "cansen88/PromptGenerator_32_topic_finetuned" \ --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": "cansen88/PromptGenerator_32_topic_finetuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cansen88/PromptGenerator_32_topic_finetuned with Docker Model Runner:
docker model run hf.co/cansen88/PromptGenerator_32_topic_finetuned
add model
Browse files- README.md +2 -2
- tf_model.h5 +1 -1
README.md
CHANGED
|
@@ -3,14 +3,14 @@ license: mit
|
|
| 3 |
tags:
|
| 4 |
- generated_from_keras_callback
|
| 5 |
model-index:
|
| 6 |
-
- name:
|
| 7 |
results: []
|
| 8 |
---
|
| 9 |
|
| 10 |
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
| 11 |
probably proofread and complete it, then remove this comment. -->
|
| 12 |
|
| 13 |
-
#
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [kmkarakaya/turkishReviews-ds](https://huggingface.co/kmkarakaya/turkishReviews-ds) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
|
|
|
| 3 |
tags:
|
| 4 |
- generated_from_keras_callback
|
| 5 |
model-index:
|
| 6 |
+
- name: PromptGenerator_32_topic_finetuned
|
| 7 |
results: []
|
| 8 |
---
|
| 9 |
|
| 10 |
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
| 11 |
probably proofread and complete it, then remove this comment. -->
|
| 12 |
|
| 13 |
+
# PromptGenerator_32_topic_finetuned
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [kmkarakaya/turkishReviews-ds](https://huggingface.co/kmkarakaya/turkishReviews-ds) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
tf_model.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 497938536
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd80202fed3a39c55f81865a441a2c8dc6f2ebe14e32edd91363bafa516419f5
|
| 3 |
size 497938536
|