Text Generation
Transformers
TensorBoard
Safetensors
English
mistral
text-to-text
natural-language-processing
text2text-generation
text-generation-inference
Instructions to use Indah1/BioChat10 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Indah1/BioChat10 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Indah1/BioChat10")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Indah1/BioChat10") model = AutoModelForCausalLM.from_pretrained("Indah1/BioChat10", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Indah1/BioChat10 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Indah1/BioChat10" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Indah1/BioChat10", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Indah1/BioChat10
- SGLang
How to use Indah1/BioChat10 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 "Indah1/BioChat10" \ --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": "Indah1/BioChat10", "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 "Indah1/BioChat10" \ --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": "Indah1/BioChat10", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Indah1/BioChat10 with Docker Model Runner:
docker model run hf.co/Indah1/BioChat10
Update README.md
Browse files
README.md
CHANGED
|
@@ -29,40 +29,12 @@ base_model: BioMistral/BioMistral-7B
|
|
| 29 |
- **Paper [optional]:** [More Information Needed]
|
| 30 |
- **Demo [optional]:** [More Information Needed]
|
| 31 |
|
| 32 |
-
## Uses
|
| 33 |
-
|
| 34 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 35 |
-
|
| 36 |
-
### Direct Use
|
| 37 |
-
|
| 38 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 39 |
-
|
| 40 |
-
[More Information Needed]
|
| 41 |
-
|
| 42 |
-
### Downstream Use [optional]
|
| 43 |
-
|
| 44 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 45 |
-
|
| 46 |
-
[More Information Needed]
|
| 47 |
-
|
| 48 |
-
### Out-of-Scope Use
|
| 49 |
-
|
| 50 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 51 |
-
|
| 52 |
-
[More Information Needed]
|
| 53 |
-
|
| 54 |
## Bias, Risks, and Limitations
|
| 55 |
|
| 56 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 57 |
|
| 58 |
[More Information Needed]
|
| 59 |
|
| 60 |
-
### Recommendations
|
| 61 |
-
|
| 62 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 63 |
-
|
| 64 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 65 |
-
|
| 66 |
## How to Get Started with the Model
|
| 67 |
|
| 68 |
Use the code below to get started with the model.
|
|
@@ -134,35 +106,6 @@ Use the code below to get started with the model.
|
|
| 134 |
|
| 135 |
[More Information Needed]
|
| 136 |
|
| 137 |
-
## Environmental Impact
|
| 138 |
-
|
| 139 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 140 |
-
|
| 141 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 142 |
-
|
| 143 |
-
- **Hardware Type:** [More Information Needed]
|
| 144 |
-
- **Hours used:** [More Information Needed]
|
| 145 |
-
- **Cloud Provider:** [More Information Needed]
|
| 146 |
-
- **Compute Region:** [More Information Needed]
|
| 147 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 148 |
-
|
| 149 |
-
## Technical Specifications [optional]
|
| 150 |
-
|
| 151 |
-
### Model Architecture and Objective
|
| 152 |
-
|
| 153 |
-
[More Information Needed]
|
| 154 |
-
|
| 155 |
-
### Compute Infrastructure
|
| 156 |
-
|
| 157 |
-
[More Information Needed]
|
| 158 |
-
|
| 159 |
-
#### Hardware
|
| 160 |
-
|
| 161 |
-
[More Information Needed]
|
| 162 |
-
|
| 163 |
-
#### Software
|
| 164 |
-
|
| 165 |
-
[More Information Needed]
|
| 166 |
|
| 167 |
## Citation [optional]
|
| 168 |
|
|
|
|
| 29 |
- **Paper [optional]:** [More Information Needed]
|
| 30 |
- **Demo [optional]:** [More Information Needed]
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
## Bias, Risks, and Limitations
|
| 33 |
|
| 34 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 35 |
|
| 36 |
[More Information Needed]
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
## How to Get Started with the Model
|
| 39 |
|
| 40 |
Use the code below to get started with the model.
|
|
|
|
| 106 |
|
| 107 |
[More Information Needed]
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
## Citation [optional]
|
| 111 |
|