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