Instructions to use onieth/chemAI2025 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use onieth/chemAI2025 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="onieth/chemAI2025") 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("onieth/chemAI2025") model = AutoModelForCausalLM.from_pretrained("onieth/chemAI2025", 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 onieth/chemAI2025 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "onieth/chemAI2025" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "onieth/chemAI2025", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/onieth/chemAI2025
- SGLang
How to use onieth/chemAI2025 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 "onieth/chemAI2025" \ --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": "onieth/chemAI2025", "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 "onieth/chemAI2025" \ --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": "onieth/chemAI2025", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use onieth/chemAI2025 with Docker Model Runner:
docker model run hf.co/onieth/chemAI2025
Upload README.md
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ It was trained on a custom dataset consisting of scientific chemistry papers fro
|
|
| 14 |
|
| 15 |
The aim with this model was to create a chemistry model that was trained on current data from 2025. Of course, it will be a few months out of date since data processing and dataset creation takes significant time as a solo developer.
|
| 16 |
|
| 17 |
-
> The following sections are either copied as they were from the **
|
| 18 |
## Model Overview
|
| 19 |
|
| 20 |
**chemAi2025** has the same model features as **Qwen3-4B-Thinking-2507**. Which are:
|
|
@@ -112,9 +112,9 @@ from qwen_agent.agents import Assistant
|
|
| 112 |
# Define LLM
|
| 113 |
# Using OpenAI-compatible API endpoint. It is recommended to disable the reasoning and the tool call parsing
|
| 114 |
# functionality of the deployment frameworks and let Qwen-Agent automate the related operations. For example,
|
| 115 |
-
# `VLLM_USE_MODELSCOPE=true vllm serve
|
| 116 |
llm_cfg = {
|
| 117 |
-
'model': '
|
| 118 |
|
| 119 |
# Use a custom endpoint compatible with OpenAI API:
|
| 120 |
'model_server': 'http://localhost:8000/v1', # api_base without reasoning and tool call parsing
|
|
|
|
| 14 |
|
| 15 |
The aim with this model was to create a chemistry model that was trained on current data from 2025. Of course, it will be a few months out of date since data processing and dataset creation takes significant time as a solo developer.
|
| 16 |
|
| 17 |
+
> The following sections are either copied as they were from the **onieth/chemAI2025** page or slightly modified. I didn't want to make it seem like I just ripped them off.
|
| 18 |
## Model Overview
|
| 19 |
|
| 20 |
**chemAi2025** has the same model features as **Qwen3-4B-Thinking-2507**. Which are:
|
|
|
|
| 112 |
# Define LLM
|
| 113 |
# Using OpenAI-compatible API endpoint. It is recommended to disable the reasoning and the tool call parsing
|
| 114 |
# functionality of the deployment frameworks and let Qwen-Agent automate the related operations. For example,
|
| 115 |
+
# `VLLM_USE_MODELSCOPE=true vllm serve onieth/chemAI2025 --served-model-name onieth/chemAI2025 --max-model-len 262144`.
|
| 116 |
llm_cfg = {
|
| 117 |
+
'model': 'onieth/chemAI2025',
|
| 118 |
|
| 119 |
# Use a custom endpoint compatible with OpenAI API:
|
| 120 |
'model_server': 'http://localhost:8000/v1', # api_base without reasoning and tool call parsing
|