Text Generation
Transformers
PyTorch
English
experimental
research
bit-level
transformer
reversible
safety
telemetry
language-modeling
Instructions to use WCNegentropy/BitTransformerLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WCNegentropy/BitTransformerLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WCNegentropy/BitTransformerLM")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("WCNegentropy/BitTransformerLM", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use WCNegentropy/BitTransformerLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WCNegentropy/BitTransformerLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WCNegentropy/BitTransformerLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WCNegentropy/BitTransformerLM
- SGLang
How to use WCNegentropy/BitTransformerLM 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 "WCNegentropy/BitTransformerLM" \ --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": "WCNegentropy/BitTransformerLM", "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 "WCNegentropy/BitTransformerLM" \ --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": "WCNegentropy/BitTransformerLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WCNegentropy/BitTransformerLM with Docker Model Runner:
docker model run hf.co/WCNegentropy/BitTransformerLM
Remove artifact: .gitignore
Browse files- .gitignore +0 -103
.gitignore
DELETED
|
@@ -1,103 +0,0 @@
|
|
| 1 |
-
# Byte-compiled / optimized / DLL files
|
| 2 |
-
__pycache__/
|
| 3 |
-
*.py[cod]
|
| 4 |
-
*$py.class
|
| 5 |
-
|
| 6 |
-
# C extensions
|
| 7 |
-
*.so
|
| 8 |
-
|
| 9 |
-
# Distribution / packaging
|
| 10 |
-
.Python
|
| 11 |
-
build/
|
| 12 |
-
develop-eggs/
|
| 13 |
-
dist/
|
| 14 |
-
downloads/
|
| 15 |
-
eggs/
|
| 16 |
-
.eggs/
|
| 17 |
-
lib/
|
| 18 |
-
lib64/
|
| 19 |
-
parts/
|
| 20 |
-
sdist/
|
| 21 |
-
var/
|
| 22 |
-
*.egg-info/
|
| 23 |
-
.installed.cfg
|
| 24 |
-
*.egg
|
| 25 |
-
MANIFEST
|
| 26 |
-
|
| 27 |
-
# PyInstaller
|
| 28 |
-
# Usually these files are written by a python script from a template
|
| 29 |
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
| 30 |
-
*.manifest
|
| 31 |
-
*.spec
|
| 32 |
-
|
| 33 |
-
# Installer logs
|
| 34 |
-
pip-log.txt
|
| 35 |
-
pip-delete-this-directory.txt
|
| 36 |
-
|
| 37 |
-
# Unit test / coverage reports
|
| 38 |
-
htmlcov/
|
| 39 |
-
.tox/
|
| 40 |
-
.nox/
|
| 41 |
-
.coverage
|
| 42 |
-
.coverage.*
|
| 43 |
-
.cache
|
| 44 |
-
nosetests.xml
|
| 45 |
-
coverage.xml
|
| 46 |
-
*.cover
|
| 47 |
-
*.py,cover
|
| 48 |
-
.hypothesis/
|
| 49 |
-
.pytest_cache/
|
| 50 |
-
|
| 51 |
-
# Jupyter Notebook
|
| 52 |
-
.ipynb_checkpoints
|
| 53 |
-
|
| 54 |
-
# Pyre type checker
|
| 55 |
-
.pyre/
|
| 56 |
-
|
| 57 |
-
# mypy
|
| 58 |
-
.mypy_cache/
|
| 59 |
-
|
| 60 |
-
# Environments
|
| 61 |
-
.env
|
| 62 |
-
.venv
|
| 63 |
-
env/
|
| 64 |
-
venv/
|
| 65 |
-
ENV/
|
| 66 |
-
|
| 67 |
-
# Spyder project settings
|
| 68 |
-
.spyderproject
|
| 69 |
-
.spyproject
|
| 70 |
-
|
| 71 |
-
# Rope project settings
|
| 72 |
-
.ropeproject
|
| 73 |
-
|
| 74 |
-
# IDEs
|
| 75 |
-
.idea/
|
| 76 |
-
.vscode/
|
| 77 |
-
|
| 78 |
-
# macOS
|
| 79 |
-
.DS_Store
|
| 80 |
-
|
| 81 |
-
# Logs
|
| 82 |
-
*.log
|
| 83 |
-
|
| 84 |
-
# Plot outputs
|
| 85 |
-
*.png
|
| 86 |
-
figures/
|
| 87 |
-
|
| 88 |
-
# Model artifacts
|
| 89 |
-
*.pt
|
| 90 |
-
*.pth
|
| 91 |
-
*.bin
|
| 92 |
-
candidates/
|
| 93 |
-
approved/
|
| 94 |
-
review_log.jsonl
|
| 95 |
-
|
| 96 |
-
# Configurations
|
| 97 |
-
*.ini
|
| 98 |
-
|
| 99 |
-
# Local data
|
| 100 |
-
*.sqlite3
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
*.pt.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|