Instructions to use Norod78/hebrew-gpt_neo-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Norod78/hebrew-gpt_neo-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Norod78/hebrew-gpt_neo-small")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Norod78/hebrew-gpt_neo-small") model = AutoModelForCausalLM.from_pretrained("Norod78/hebrew-gpt_neo-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Norod78/hebrew-gpt_neo-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Norod78/hebrew-gpt_neo-small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Norod78/hebrew-gpt_neo-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Norod78/hebrew-gpt_neo-small
- SGLang
How to use Norod78/hebrew-gpt_neo-small 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 "Norod78/hebrew-gpt_neo-small" \ --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": "Norod78/hebrew-gpt_neo-small", "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 "Norod78/hebrew-gpt_neo-small" \ --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": "Norod78/hebrew-gpt_neo-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Norod78/hebrew-gpt_neo-small with Docker Model Runner:
docker model run hf.co/Norod78/hebrew-gpt_neo-small
Commit History
Quant, CPU optimized onnx fd89195
Doron Adler commited on
Remove 2 fields 12ac2ca
Doron Adler commited on
Move tokenizer.json to non LFS storage e08d1e3
Doron Adler commited on
Added onnx model db16f0e
Doron Adler commited on
Update special_tokens_map.json d0e1863
CC100-Hebrew Dataset 16724d6
Doron Adler commited on
model.ckpt-572300 71dc86b
Doron Adler commited on
"pad_token_id": 50256 f470dc2
Doron Adler commited on
Added FlaxGPTNeoForCausalLM format 97042e4
Doron Adler commited on
model.ckpt-513400 c4eb814
Doron Adler commited on
Update README.md 675cf6d
Updated model card 8bd28ce
Doron Adler commited on
Checkpoint 328400 c753749
Doron Adler commited on
Checkpoint 255800 b0b147d
Doron Adler commited on
Delete .MD d12fe91
Doron Adler commited on
Updated README.md 63ed48d
Checkpoint 175800 28d7c2d
Doron Adler commited on
Update model card 08a76ee
Doron Adler commited on
Create README.md 4d0c4ed
Added Model Card d21ef97
Doron Adler commited on