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