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
Update README.md
Browse files
README.md
CHANGED
|
@@ -63,9 +63,9 @@ This model is a fine-tuned version of **EleutherAI/pythia-2.8b-deduped** (https:
|
|
| 63 |
|
| 64 |
* "The Lord of the Rings: The Return of the King"
|
| 65 |
|
| 66 |
-
**Epochs:**
|
| 67 |
|
| 68 |
-
**Steps:**
|
| 69 |
|
| 70 |
|
| 71 |
|
|
|
|
| 63 |
|
| 64 |
* "The Lord of the Rings: The Return of the King"
|
| 65 |
|
| 66 |
+
**Epochs:** 10
|
| 67 |
|
| 68 |
+
**Steps:** 3
|
| 69 |
|
| 70 |
|
| 71 |
|