Instructions to use amogaddy/GenerAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amogaddy/GenerAI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="amogaddy/GenerAI")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("amogaddy/GenerAI", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use amogaddy/GenerAI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "amogaddy/GenerAI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "amogaddy/GenerAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/amogaddy/GenerAI
- SGLang
How to use amogaddy/GenerAI 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 "amogaddy/GenerAI" \ --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": "amogaddy/GenerAI", "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 "amogaddy/GenerAI" \ --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": "amogaddy/GenerAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use amogaddy/GenerAI with Docker Model Runner:
docker model run hf.co/amogaddy/GenerAI
Commit History
-
Update README.md
Verified signature694730e -
Fix: DuckDuckGo bloccava le richieste automatizzate, sostituito con Bing (testato e funzionante)
Verified signature6234198 -
Sostituita ricerca web SearXNG con Chromium/Playwright; aggiunto Dockerfile per Chromium su HF Space
Verified signatureb1a33c2
-
README
Verified signature248586b
-
.
Verified signaturead910c5
-
Sync aggiornamento
Verified signatureebfd9e9 -
Sync aggiornamento
Verified signature61adc39 -
Sync aggiornamento
Verified signatureaa8f481 -
Sync aggiornamento
Verified signature01c9829 -
Upload dataset.jsonl with huggingface_hub
Verified signature141969f -
Upload requirements-train.txt with huggingface_hub
Verified signature3284895 -
Upload requirements.txt with huggingface_hub
Verified signaturea220aff -
Upload upload_hf.py with huggingface_hub
Verified signature40cba1f -
Upload finetune.py with huggingface_hub
Verified signaturec522400 -
Upload export_dataset.py with huggingface_hub
Verified signature8344211 -
Upload seed_italian.py with huggingface_hub
Verified signature6e3aaa4 -
Upload errors.py with huggingface_hub
Verified signature37ffa75 -
Upload scraper.py with huggingface_hub
Verified signatureed3c6cc -
Upload knowledge_base.py with huggingface_hub
Verified signature33d4a41 -
Upload brain.py with huggingface_hub
Verified signatureef43e9f -
Upload app.py with huggingface_hub
Verified signature57fadb3 -
initial commit
Verified signature36c6e5a