Instructions to use ghdi/history-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ghdi/history-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ghdi/history-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ghdi/history-model") model = AutoModelForCausalLM.from_pretrained("ghdi/history-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ghdi/history-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ghdi/history-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ghdi/history-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ghdi/history-model
- SGLang
How to use ghdi/history-model 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 "ghdi/history-model" \ --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": "ghdi/history-model", "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 "ghdi/history-model" \ --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": "ghdi/history-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ghdi/history-model with Docker Model Runner:
docker model run hf.co/ghdi/history-model
Commit History
-
Training in progress epoch 19
a6dfdf1 -
Training in progress epoch 18
116aa89 -
Training in progress epoch 17
6856b06 -
Training in progress epoch 16
3d8d9d2 -
Training in progress epoch 15
cf9c5f9 -
Training in progress epoch 14
5b947a9 -
Training in progress epoch 13
b2de60b -
Training in progress epoch 12
bd9c2fe -
Training in progress epoch 11
ed1412e -
Training in progress epoch 10
cf6e0e3 -
Training in progress epoch 9
4b0e379 -
Training in progress epoch 8
8591779 -
Training in progress epoch 7
47890d6 -
Training in progress epoch 6
a05f83d -
Training in progress epoch 5
eac996d -
Training in progress epoch 4
ff4f5d0 -
Training in progress epoch 3
151f6b8 -
Training in progress epoch 2
2d47b42 -
Training in progress epoch 1
4edb2ad
-
Training in progress epoch 0
62f5b42 -
initial commit
fe17407