Instructions to use AntonClaesson/movie-plot-generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AntonClaesson/movie-plot-generator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AntonClaesson/movie-plot-generator")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AntonClaesson/movie-plot-generator") model = AutoModelForCausalLM.from_pretrained("AntonClaesson/movie-plot-generator") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AntonClaesson/movie-plot-generator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AntonClaesson/movie-plot-generator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AntonClaesson/movie-plot-generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AntonClaesson/movie-plot-generator
- SGLang
How to use AntonClaesson/movie-plot-generator 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 "AntonClaesson/movie-plot-generator" \ --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": "AntonClaesson/movie-plot-generator", "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 "AntonClaesson/movie-plot-generator" \ --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": "AntonClaesson/movie-plot-generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AntonClaesson/movie-plot-generator with Docker Model Runner:
docker model run hf.co/AntonClaesson/movie-plot-generator
Commit ·
72fbc7d
1
Parent(s): a5b4dab
update model card README.md
Browse files
README.md
CHANGED
|
@@ -31,16 +31,20 @@ More information needed
|
|
| 31 |
|
| 32 |
The following hyperparameters were used during training:
|
| 33 |
- learning_rate: 1e-05
|
| 34 |
-
- train_batch_size:
|
| 35 |
- eval_batch_size: 8
|
| 36 |
- seed: 42
|
| 37 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 38 |
- lr_scheduler_type: linear
|
| 39 |
- num_epochs: 1
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
### Framework versions
|
| 42 |
|
| 43 |
- Transformers 4.11.3
|
| 44 |
- Pytorch 1.9.1
|
| 45 |
-
- Datasets 1.
|
| 46 |
- Tokenizers 0.10.3
|
|
|
|
| 31 |
|
| 32 |
The following hyperparameters were used during training:
|
| 33 |
- learning_rate: 1e-05
|
| 34 |
+
- train_batch_size: 1
|
| 35 |
- eval_batch_size: 8
|
| 36 |
- seed: 42
|
| 37 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 38 |
- lr_scheduler_type: linear
|
| 39 |
- num_epochs: 1
|
| 40 |
|
| 41 |
+
### Training results
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
|
| 45 |
### Framework versions
|
| 46 |
|
| 47 |
- Transformers 4.11.3
|
| 48 |
- Pytorch 1.9.1
|
| 49 |
+
- Datasets 1.13.2
|
| 50 |
- Tokenizers 0.10.3
|