Instructions to use berwart/Inteligent_ai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use berwart/Inteligent_ai with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="berwart/Inteligent_ai")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("berwart/Inteligent_ai", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use berwart/Inteligent_ai with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "berwart/Inteligent_ai" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "berwart/Inteligent_ai", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/berwart/Inteligent_ai
- SGLang
How to use berwart/Inteligent_ai 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 "berwart/Inteligent_ai" \ --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": "berwart/Inteligent_ai", "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 "berwart/Inteligent_ai" \ --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": "berwart/Inteligent_ai", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use berwart/Inteligent_ai with Docker Model Runner:
docker model run hf.co/berwart/Inteligent_ai
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,11 +1,27 @@
|
|
| 1 |
---
|
| 2 |
widget:
|
| 3 |
-
- text:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
example_title:
|
| 7 |
-
- text:
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
example_title:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
|
|
|
| 1 |
---
|
| 2 |
widget:
|
| 3 |
+
- text: >-
|
| 4 |
+
Is this review positive or negative? Review: Best cast iron skillet you will
|
| 5 |
+
ever buy.
|
| 6 |
+
example_title: Sentiment analysis
|
| 7 |
+
- text: >-
|
| 8 |
+
Barack Obama nominated Hilary Clinton as his secretary of state on Monday.
|
| 9 |
+
He chose her because she had ...
|
| 10 |
+
example_title: Coreference resolution
|
| 11 |
+
- text: >-
|
| 12 |
+
On a shelf, there are five books: a gray book, a red book, a purple book, a
|
| 13 |
+
blue book, and a black book ...
|
| 14 |
+
example_title: Logic puzzles
|
| 15 |
+
- text: >-
|
| 16 |
+
The two men running to become New York City's next mayor will face off in
|
| 17 |
+
their first debate Wednesday night ...
|
| 18 |
+
example_title: Reading comprehension
|
| 19 |
+
datasets:
|
| 20 |
+
- HuggingFaceFW/fineweb
|
| 21 |
+
language:
|
| 22 |
+
- en
|
| 23 |
+
metrics:
|
| 24 |
+
- accuracy
|
| 25 |
+
library_name: transformers
|
| 26 |
+
pipeline_tag: question-answering
|
| 27 |
---
|