Text Generation
Transformers
TensorBoard
Safetensors
PEFT
Trained with AutoTrain
text-generation-inference
conversational
Instructions to use BANA577/Mistral-Koichi2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BANA577/Mistral-Koichi2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BANA577/Mistral-Koichi2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("BANA577/Mistral-Koichi2", device_map="auto") - PEFT
How to use BANA577/Mistral-Koichi2 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BANA577/Mistral-Koichi2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BANA577/Mistral-Koichi2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BANA577/Mistral-Koichi2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BANA577/Mistral-Koichi2
- SGLang
How to use BANA577/Mistral-Koichi2 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 "BANA577/Mistral-Koichi2" \ --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": "BANA577/Mistral-Koichi2", "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 "BANA577/Mistral-Koichi2" \ --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": "BANA577/Mistral-Koichi2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use BANA577/Mistral-Koichi2 with Docker Model Runner:
docker model run hf.co/BANA577/Mistral-Koichi2
Download training_args.bin from BANA577/Mistral-Koichi2: direct link, hf CLI and curl.
- Browser
- Download file 5.05 kB
-
https://huggingface.co/BANA577/Mistral-Koichi2/resolve/main/training_args.bin
- Command line
-
hf download hf://BANA577/Mistral-Koichi2/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/BANA577/Mistral-Koichi2/resolve/main/training_args.bin
5.05 kB
- Xet hash:
- b554f6d64e41320a334fd4e7f35521435f3479f9c5f356e2d993ef367e6517c1
- Size of remote file:
- 5.05 kB
- SHA256:
- f75be5e8265418b292f2ca732ac34506aa012042d2df7f5d7475b852140629ad
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.