Instructions to use RAYTRAC3R/fanfic-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RAYTRAC3R/fanfic-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RAYTRAC3R/fanfic-chat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RAYTRAC3R/fanfic-chat") model = AutoModelForCausalLM.from_pretrained("RAYTRAC3R/fanfic-chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RAYTRAC3R/fanfic-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RAYTRAC3R/fanfic-chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RAYTRAC3R/fanfic-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/RAYTRAC3R/fanfic-chat
- SGLang
How to use RAYTRAC3R/fanfic-chat 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 "RAYTRAC3R/fanfic-chat" \ --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": "RAYTRAC3R/fanfic-chat", "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 "RAYTRAC3R/fanfic-chat" \ --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": "RAYTRAC3R/fanfic-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use RAYTRAC3R/fanfic-chat with Docker Model Runner:
docker model run hf.co/RAYTRAC3R/fanfic-chat
Commit History
-
new model version
3d9c879 -
new model version
757c12d
-
Second model version
16d3bf4 -
Delete model-1809.index
c420d73 -
Upload pytorch_model.bin
d14e70b -
Upload config.json
49fa6e0 -
Delete config.json
8097115 -
Delete model-1809.meta
5b241f2 -
Delete model-1809.data-00000-of-00001
5c2f163 -
Upload merges.txt
d731d4a -
Upload tokenizer.json
78450d6 -
Upload vocab.json
d9f450c -
Create new file
2ac7678 -
Upload hparams.json
5d6218e -
Upload encoder.json
fb61c6e -
Upload model-1809.meta
6e4a51c -
Upload model-1809.index
72dc8d5 -
Upload counter
1737285 -
Upload checkpoint
98bf4a5 -
Upload vocab.bpe
b754b93 -
Upload model-1809.data-00000-of-00001
9c7e3ee -
initial commit
455c90f