Instructions to use thegrey007/factual_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thegrey007/factual_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="thegrey007/factual_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("thegrey007/factual_model") model = AutoModelForCausalLM.from_pretrained("thegrey007/factual_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use thegrey007/factual_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thegrey007/factual_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thegrey007/factual_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/thegrey007/factual_model
- SGLang
How to use thegrey007/factual_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 "thegrey007/factual_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": "thegrey007/factual_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 "thegrey007/factual_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": "thegrey007/factual_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use thegrey007/factual_model with Docker Model Runner:
docker model run hf.co/thegrey007/factual_model
Download pytorch_model.bin from thegrey007/factual_model: direct link, hf CLI and curl.
- Browser
- Download file 251 MB
-
https://huggingface.co/thegrey007/factual_model/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://thegrey007/factual_model/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/thegrey007/factual_model/resolve/main/pytorch_model.bin
251 MB
- Xet hash:
- 945ad3540eeb43d9cef2e1ad8b1ca2be1f3d0c75b539aef7b19a2dfbcd006cb2
- Size of remote file:
- 251 MB
- SHA256:
- 1dd906f8548509675d88fdfc35666149f463f8b16a2db771d41b8326d3ecd5fd
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.