Instructions to use ShaneEP77/tolkientexts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ShaneEP77/tolkientexts with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ShaneEP77/tolkientexts")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ShaneEP77/tolkientexts") model = AutoModelForCausalLM.from_pretrained("ShaneEP77/tolkientexts", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ShaneEP77/tolkientexts with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ShaneEP77/tolkientexts" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ShaneEP77/tolkientexts", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ShaneEP77/tolkientexts
- SGLang
How to use ShaneEP77/tolkientexts 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 "ShaneEP77/tolkientexts" \ --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": "ShaneEP77/tolkientexts", "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 "ShaneEP77/tolkientexts" \ --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": "ShaneEP77/tolkientexts", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ShaneEP77/tolkientexts with Docker Model Runner:
docker model run hf.co/ShaneEP77/tolkientexts
Commit History
-
Update README.md
9d7f76f -
Upload image2.png
35654ca -
Upload image1.png
a9cbab9 -
Update README.md
5942c16 -
Update README.md
a0e78e2 -
Update README.md
2a26d53 -
Update README.md
85df09d -
Update README.md
0d9f5f7 -
Update README.md
6fb116e -
Update README.md
713ddb7 -
Update README.md
f347087
-
Upload vocab.json
58745e4 -
Upload merges.txt
380f0b6 -
Update README.md
84cd09b -
Update README.md
6b91923 -
Update README.md
42a63fc -
Update README.md
f2d2e13
-
Update README.md
21b7ef2 -
Update README.md
707deff -
Update README.md
8041ddb -
Create README.md
a99943a -
Upload training_args.bin
cd068b0 -
Upload tokenizer_config.json
f03a226 -
Upload tokenizer.json
c3d62ec -
Upload special_tokens_map.json
5026dc9 -
Upload pytorch_model.bin
4b2cd02 -
Upload config.json
64baa8d -
Delete final.zip
f734e7e -
Upload final.zip
704ed38 -
Create README.md
9f6210c -
Delete README.md with huggingface_hub (#2)
- Delete README.md with huggingface_hub (ebbdd10fb964a8aac35627d7c27f0f9c4fdbd43b)b90afe7 -
Delete ds_config.json
2b4e1b7 -
Upload ds_config.json
ed5f224 -
initial commit
ba79911