Instructions to use Tincando/fiction_story_generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tincando/fiction_story_generator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Tincando/fiction_story_generator")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Tincando/fiction_story_generator") model = AutoModelForCausalLM.from_pretrained("Tincando/fiction_story_generator", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Tincando/fiction_story_generator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tincando/fiction_story_generator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tincando/fiction_story_generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Tincando/fiction_story_generator
- SGLang
How to use Tincando/fiction_story_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 "Tincando/fiction_story_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": "Tincando/fiction_story_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 "Tincando/fiction_story_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": "Tincando/fiction_story_generator", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Tincando/fiction_story_generator with Docker Model Runner:
docker model run hf.co/Tincando/fiction_story_generator
Adding Evaluation Results
#43 opened almost 3 years ago
by
leaderboard-pr-bot
Adding `safetensors` variant of this model
#42 opened almost 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#41 opened almost 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#40 opened almost 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#39 opened almost 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#38 opened almost 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#37 opened almost 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#36 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#35 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#34 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#33 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#32 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#31 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#30 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#29 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#28 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#27 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#26 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#25 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#24 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#23 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#22 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#21 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#20 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#19 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#18 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#17 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#16 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#15 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#14 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#13 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#12 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#11 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#10 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#9 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#8 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#7 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#6 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#5 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#4 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#3 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#2 opened about 3 years ago
by
SFconvertbot
Adding `safetensors` variant of this model
#1 opened about 3 years ago
by
SFconvertbot