Instructions to use Codemaster67/Test_run with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Codemaster67/Test_run with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Codemaster67/Test_run")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Codemaster67/Test_run") model = AutoModelForCausalLM.from_pretrained("Codemaster67/Test_run", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Codemaster67/Test_run with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Codemaster67/Test_run" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Codemaster67/Test_run", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Codemaster67/Test_run
- SGLang
How to use Codemaster67/Test_run 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 "Codemaster67/Test_run" \ --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": "Codemaster67/Test_run", "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 "Codemaster67/Test_run" \ --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": "Codemaster67/Test_run", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Codemaster67/Test_run with Docker Model Runner:
docker model run hf.co/Codemaster67/Test_run
OLMo-7B Full Fine-Tune — Chemistry SMILES CPT
Model Description
This model is a full-parameter fine-tuned version of HuggingFaceTB/SmolLM-135M trained on chemistry SMILES strings from the Codemaster67/Causal_lm_chemistry_1M_rows dataset.
The base model's tokenizer was pre-extended with ~300 SPE (SMILES Pair
Encoding) chemistry tokens plus <|start_of_smiles|> / <|end_of_smiles|>
special tokens, and its embedding & LM-head layers were resized with
mean-initialised vectors for the new tokens.
Training Details
| Parameter | Value |
|---|---|
| Method | Full Fine-Tune (all weights updated) |
| Parallelism | FSDP (Fully Sharded Data Parallel) |
| Epochs | 1 |
| Learning Rate | 5e-06 |
| Batch Size (per device) | 32 |
| Gradient Accumulation | 1 |
| Max Sequence Length | 128 |
| Warmup Ratio | 0.1 |
| Weight Decay | 0.01 |
| Scheduler | Cosine |
| Precision | bf16 |
| Augmentation | OFF |
| Training Samples | Full dataset |
| Eval Samples | Full dataset (10%) |
Evaluation Results
| Metric | Value |
|---|---|
| Final Eval Loss | 3.204535961151123 |
| Final Eval Perplexity | 24.644061560759287 |
| Training Loss | 3.1543 |
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Codemaster67/Test_run", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("Codemaster67/Test_run", trust_remote_code=True)
smiles_input = "<|start_of_smiles|>CC(=O)Oc1ccccc1C(=O)O<|end_of_smiles|>"
inputs = tokenizer(smiles_input, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=False))
Intended Use
Chemistry-domain language modelling, SMILES generation and completion, and downstream molecular property prediction via fine-tuning.
Limitations
- Trained primarily on SMILES strings; natural-language instruction-following ability may degrade compared to the base OLMo checkpoint.
- Augmentation was disabled for this run.
- Downloads last month
- 42
Model tree for Codemaster67/Test_run
Base model
HuggingFaceTB/SmolLM-135M