Instructions to use AuriLab/gpt-bi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AuriLab/gpt-bi with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AuriLab/gpt-bi") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AuriLab/gpt-bi") model = AutoModelForCausalLM.from_pretrained("AuriLab/gpt-bi", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AuriLab/gpt-bi with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AuriLab/gpt-bi" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AuriLab/gpt-bi", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AuriLab/gpt-bi
- SGLang
How to use AuriLab/gpt-bi 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 "AuriLab/gpt-bi" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AuriLab/gpt-bi", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "AuriLab/gpt-bi" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AuriLab/gpt-bi", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AuriLab/gpt-bi with Docker Model Runner:
docker model run hf.co/AuriLab/gpt-bi
Commit History
-
Update README.md
Verified signature0c87e8b
-
Upload model
Verified signature3c740ec
-
Upload model
Verified signature8285da3
-
Update README.md
Verified signature841ecf1 -
Update README.md
Verified signature6ee8f48 -
Update README.md
Verified signature7dde1b2
-
Update README.md
Verified signature9d1ff18
-
Upload tokenizer
Verified signature2c6d6e7 -
Upload tokenizer
Verified signaturebf19f82 -
Upload tokenizer
Verified signature68d11c3 -
Delete special_tokens_map.json
Verified signaturef67492d -
Delete tokenizer_config.json
Verified signature7382639 -
Delete tokenizer.json
Verified signature7ffdf25 -
Upload folder using huggingface_hub
Verified signature037d9d7
-
Checkpoint a los 5000 steps
Verified signature10304dc -
Checkpoint a los 5000 steps
Verified signaturee994277 -
Checkpoint a los 4000 steps
Verified signature4711514 -
Checkpoint a los 4000 steps
Verified signaturec345351 -
Checkpoint a los 3000 steps
Verified signatureb2756d8 -
Checkpoint a los 3000 steps
Verified signatureb737b01 -
Checkpoint a los 2000 steps
Verified signature388befe -
Checkpoint a los 2000 steps
Verified signatureddfc0ed -
Checkpoint a los 1000 steps
Verified signatured085162 -
Checkpoint a los 1000 steps
Verified signature01d452e
-
Upload model
Verified signature9cbdec0
-
Upload model
Verified signature760c533 -
Upload model
Verified signaturea08e9c2 -
Upload model
Verified signatured35e916 -
Upload model
Verified signature05ea48c -
Upload model
Verified signature770723c
-
Upload model
Verified signature223d6f3 -
Upload model
Verified signature91819ce
-
Upload tokenizer
Verified signaturebe5ae39
-
Checkpoint a los 10 steps
Verified signature6d0c753 -
Actualización del modelo checkpoint-7500
Verified signature6dfb489 -
Update README.md
Verified signatured1b1680 -
Update README.md
Verified signatureb0b8a3b -
Actualización del modelo checkpoint-6000
Verified signaturebaac49c
-
Upload tokenizer
Verified signature4e50e25 -
Upload tokenizer
Verified signature8d3d631 -
Upload tokenizer
Verified signature26b7505 -
initial commit
Verified signature3277ed5