Text Generation
Transformers
Safetensors
English
qwen2
protein-design
agentic
tool-use
qwen2.5
reinforcement-learning
grpo
conversational
text-generation-inference
Instructions to use Huggggooo/ProtoCycle-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Huggggooo/ProtoCycle-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Huggggooo/ProtoCycle-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Huggggooo/ProtoCycle-7B") model = AutoModelForCausalLM.from_pretrained("Huggggooo/ProtoCycle-7B") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Huggggooo/ProtoCycle-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Huggggooo/ProtoCycle-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Huggggooo/ProtoCycle-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Huggggooo/ProtoCycle-7B
- SGLang
How to use Huggggooo/ProtoCycle-7B 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 "Huggggooo/ProtoCycle-7B" \ --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": "Huggggooo/ProtoCycle-7B", "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 "Huggggooo/ProtoCycle-7B" \ --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": "Huggggooo/ProtoCycle-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Huggggooo/ProtoCycle-7B with Docker Model Runner:
docker model run hf.co/Huggggooo/ProtoCycle-7B
Update README.md
Browse files
README.md
CHANGED
|
@@ -33,15 +33,6 @@ Reward) stage**, initialised from the SFT checkpoint
|
|
| 33 |
- Reward manager: `protein` (see
|
| 34 |
[ProtoCycle/verl/workers/reward_manager/protein.py](https://github.com/huggggoooooo/ProtoCycle/blob/main/verl/workers/reward_manager/protein.py))
|
| 35 |
|
| 36 |
-
## Reward Signal
|
| 37 |
-
|
| 38 |
-
The GRPO-TCR reward combines:
|
| 39 |
-
1. **Protocol compliance** — `<think>` / `<plan>` / `<tool_call>` / `<answer>`
|
| 40 |
-
format.
|
| 41 |
-
2. **Tool-call quality** — per-step ProTrek score of the best sequence after
|
| 42 |
-
each Stage-1 / Stage-3 tool call.
|
| 43 |
-
3. **Outcome signal** — final (global-best) ProTrek score vs the requirement.
|
| 44 |
-
4. **Efficiency** — penalty for excessively long rollouts.
|
| 45 |
|
| 46 |
See
|
| 47 |
[`recipe/protein/reward.py`](https://github.com/huggggoooooo/ProtoCycle/blob/main/recipe/protein/reward.py)
|
|
@@ -57,25 +48,11 @@ for the exact formulation.
|
|
| 57 |
<answer>MAEGEITPLKTF...</answer>
|
| 58 |
```
|
| 59 |
|
| 60 |
-
Registered tools (10):
|
| 61 |
-
- **Stage 1:** `function2seq`, `pathway2seq`, `domain2seq`, `go2seq`,
|
| 62 |
-
`dna_binding2seq`
|
| 63 |
-
- **Stage 2:** `cofactor2constraints`, `motif2constraints`,
|
| 64 |
-
`signal2constraints`
|
| 65 |
-
- **Stage 3:** `esm_inpaint`, `get_score`
|
| 66 |
-
|
| 67 |
## How to Use
|
| 68 |
|
| 69 |
-
|
| 70 |
-
[ProtoCycle](https://github.com/huggggoooooo/ProtoCycle) repo
|
| 71 |
|
| 72 |
-
```bash
|
| 73 |
-
export MODEL_DIR=/path/to/ProtoCycle-7B # this checkpoint
|
| 74 |
-
export MODEL_NAME=ProtoCycle-7B
|
| 75 |
-
export CONDA_ROOT=/path/to/miniconda3
|
| 76 |
-
# Also export PROTREK_*_DIR, ESM_MODEL_PATH, etc. (see ProtoCycle README)
|
| 77 |
-
bash infer_tools.sh
|
| 78 |
-
```
|
| 79 |
|
| 80 |
## License
|
| 81 |
|
|
|
|
| 33 |
- Reward manager: `protein` (see
|
| 34 |
[ProtoCycle/verl/workers/reward_manager/protein.py](https://github.com/huggggoooooo/ProtoCycle/blob/main/verl/workers/reward_manager/protein.py))
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
See
|
| 38 |
[`recipe/protein/reward.py`](https://github.com/huggggoooooo/ProtoCycle/blob/main/recipe/protein/reward.py)
|
|
|
|
| 48 |
<answer>MAEGEITPLKTF...</answer>
|
| 49 |
```
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
## How to Use
|
| 52 |
|
| 53 |
+
See the ProtoCycle repository:
|
| 54 |
+
[ProtoCycle](https://github.com/huggggoooooo/ProtoCycle) repo.
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
## License
|
| 58 |
|