Text Generation
Transformers
PyTorch
gptj
8bit
8-bit precision
quantization
compression
chatbot
dialogue
conversation
Instructions to use ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps") model = AutoModelForCausalLM.from_pretrained("ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps
- SGLang
How to use ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps 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 "ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps" \ --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": "ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps", "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 "ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps" \ --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": "ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps with Docker Model Runner:
docker model run hf.co/ethzanalytics/gpt-j-8bit-KILT_WoW_10k_steps
- Xet hash:
- 4bad4dc5217eef1a3a2b01614b957bac46766a46e9f9828ab25c9c3fe43f3699
- Size of remote file:
- 2 GB
- SHA256:
- 80ecdaf7d110c1ea743cb9acefce2b69bd2c221415d49134dfd15c025892d246
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.