Instructions to use botbottingbot/Modular_Intelligence with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use botbottingbot/Modular_Intelligence with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="botbottingbot/Modular_Intelligence")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("botbottingbot/Modular_Intelligence", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use botbottingbot/Modular_Intelligence with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "botbottingbot/Modular_Intelligence" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "botbottingbot/Modular_Intelligence", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/botbottingbot/Modular_Intelligence
- SGLang
How to use botbottingbot/Modular_Intelligence 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 "botbottingbot/Modular_Intelligence" \ --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": "botbottingbot/Modular_Intelligence", "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 "botbottingbot/Modular_Intelligence" \ --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": "botbottingbot/Modular_Intelligence", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use botbottingbot/Modular_Intelligence with Docker Model Runner:
docker model run hf.co/botbottingbot/Modular_Intelligence
Update .gitattributes
Browse files- .gitattributes +70 -35
.gitattributes
CHANGED
|
@@ -1,35 +1,70 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
*
|
| 5 |
-
*.
|
| 6 |
-
*.
|
| 7 |
-
*.
|
| 8 |
-
*.
|
| 9 |
-
*.
|
| 10 |
-
*.
|
| 11 |
-
*.
|
| 12 |
-
*.
|
| 13 |
-
*.
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
*.
|
| 20 |
-
*.
|
| 21 |
-
*.
|
| 22 |
-
*.
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
*.
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -------------------------------
|
| 2 |
+
# Encoding and EOL Normalization
|
| 3 |
+
# -------------------------------
|
| 4 |
+
* text=auto eol=lf
|
| 5 |
+
*.py text eol=lf
|
| 6 |
+
*.json text eol=lf
|
| 7 |
+
*.md text eol=lf
|
| 8 |
+
*.txt text eol=lf
|
| 9 |
+
*.yml text eol=lf
|
| 10 |
+
*.yaml text eol=lf
|
| 11 |
+
*.html text eol=lf
|
| 12 |
+
*.css text eol=lf
|
| 13 |
+
*.js text eol=lf
|
| 14 |
+
|
| 15 |
+
# -------------------------------
|
| 16 |
+
# Linguist Overrides (GitHub)
|
| 17 |
+
# Ensures correct language stats
|
| 18 |
+
# -------------------------------
|
| 19 |
+
*.json linguist-detectable=true
|
| 20 |
+
*.py linguist-detectable=true
|
| 21 |
+
*.md linguist-detectable=true
|
| 22 |
+
*.txt linguist-detectable=true
|
| 23 |
+
|
| 24 |
+
# Do not count dependencies or HF build artifacts in language stats
|
| 25 |
+
requirements.txt linguist-documentation
|
| 26 |
+
README.md linguist-documentation
|
| 27 |
+
diagram.txt linguist-documentation
|
| 28 |
+
|
| 29 |
+
# HuggingFace Space metadata
|
| 30 |
+
*.yaml linguist-generated=true
|
| 31 |
+
|
| 32 |
+
# -------------------------------
|
| 33 |
+
# Binary Files
|
| 34 |
+
# -------------------------------
|
| 35 |
+
*.png binary
|
| 36 |
+
*.jpg binary
|
| 37 |
+
*.jpeg binary
|
| 38 |
+
*.gif binary
|
| 39 |
+
*.svg binary
|
| 40 |
+
*.ico binary
|
| 41 |
+
*.pdf binary
|
| 42 |
+
|
| 43 |
+
# -------------------------------
|
| 44 |
+
# Model files (if added later)
|
| 45 |
+
# Treat as binary; avoid corruption
|
| 46 |
+
# -------------------------------
|
| 47 |
+
*.bin binary
|
| 48 |
+
*.pt binary
|
| 49 |
+
*.pth binary
|
| 50 |
+
*.safetensors binary
|
| 51 |
+
*.onnx binary
|
| 52 |
+
|
| 53 |
+
# -------------------------------
|
| 54 |
+
# HuggingFace Cache / Non-essential
|
| 55 |
+
# -------------------------------
|
| 56 |
+
*.lock text eol=lf
|
| 57 |
+
.cache/* linguist-generated=true export-ignore
|
| 58 |
+
logs/* linguist-generated=true export-ignore
|
| 59 |
+
|
| 60 |
+
# -------------------------------
|
| 61 |
+
# Prevent accidental commits
|
| 62 |
+
# -------------------------------
|
| 63 |
+
secret* export-ignore
|
| 64 |
+
*.env export-ignore
|
| 65 |
+
*.key export-ignore
|
| 66 |
+
*.pem export-ignore
|
| 67 |
+
|
| 68 |
+
# -------------------------------
|
| 69 |
+
# End
|
| 70 |
+
# -------------------------------
|