zjunlp / OceanGPT-coder-0.6B

huggingface.co
Total runs: 4
24-hour runs: 0
7-day runs: 0
30-day runs: 3
Model's Last Updated: June 18 2025

Introduction of OceanGPT-coder-0.6B

Model Details of OceanGPT-coder-0.6B

OceanGPT(沧渊): A Large Language Model for Ocean Science Tasks

Project Paper Models Web

OceanGPT-coder-0.6B is based on Qwen3-0.6B and has been trained on a hybrid synthetic code dataset in MOOS language.

Please note that the models and data in this repository are updated regularly to fix errors. The latest update date will be added to the README.md for your reference.

  • We will continue to update.
  • Disclaimer: This project is purely an academic exploration rather than a product. Please be aware that due to the inherent limitations of large language models, there may be issues such as hallucinations.
⏩Quickstart
Step 1: Download the model

Download the model: zjunlp/OceanGPT-coder-0.6B

git lfs install
git clone https://huggingface.co/zjunlp/OceanGPT-coder-0.6B

or

huggingface-cli download --resume-download zjunlp/OceanGPT-coder-0.6B --local-dir OceanGPT-coder-0.6B --local-dir-use-symlinks False
Step 2: Inference
# Recommended to use Python 3.10 or latest version, PyTorch 2.6 or latest version.
pip install transformers>=4.51.0
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "zjunlp/OceanGPT-coder-0.6B"
device = "auto" # or your divice, e.g., "cuda:0" or "cpu".

# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map=device
)

# prepare the model input
prompt = "请为水下机器人生成MOOS代码,实现如下任务:先回到(50,20)点,然后以(15,20)点为圆形,做半径为30的圆周运动,持续时间200s,速度4 m/s。"
messages = [
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False
)
model_inputs = tokenizer([text], return_tensors="pt").to(device)

# conduct text completion
generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=2048,
    # temperature=0.6,
    # do_sample=True,
    # top_p=0.6,
    # top_k=50,
    # pad_token_id=tokenizer.eos_token_id
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()

# parsing thinking content
# try:
#     # rindex finding 151668 (</think>)
#     index = len(output_ids) - output_ids[::-1].index(151668)
# except ValueError:
#     index = 0

# thinking_content = tokenizer.decode(output_ids[:index], skip_special_tokens=True).strip("\n")
content = tokenizer.decode(output_ids, skip_special_tokens=True).strip("\n")

print(content)
🌻Acknowledgement

OceanGPT (沧渊) is trained based on the open-sourced large language models including Qwen , MiniCPM , LLaMA .

OceanGPT is trained based on the open-sourced data and tools including Moos , UATD , Forward-looking Sonar Detection Dataset , NKSID , SeabedObjects-KLSG , Marine Debris .

Thanks for their great contributions!

Limitations
  • The model may have hallucination issues.

  • Due to limited computational resources, OceanGPT-coder currently only supports machine code in MOOS language.

  • We did not optimize the identity and the model may generate identity information similar to that of Qwen/MiniCPM/LLaMA/GPT series models.

  • The model's output is influenced by prompt tokens, which may result in inconsistent results across multiple attempts.

  • The model requires the inclusion of specific simulator code instructions for training in order to possess simulated embodied intelligence capabilities (the simulator is subject to copyright restrictions and cannot be made available for now), and its current capabilities are quite limited.

🚩Citation

Please cite the following paper if you use OceanGPT in your work.

@article{bi2023oceangpt,
  title={OceanGPT: A Large Language Model for Ocean Science Tasks},
  author={Bi, Zhen and Zhang, Ningyu and Xue, Yida and Ou, Yixin and Ji, Daxiong and Zheng, Guozhou and Chen, Huajun},
  journal={arXiv preprint arXiv:2310.02031},
  year={2023}
}

Runs of zjunlp OceanGPT-coder-0.6B on huggingface.co

4
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
3
30-day runs

More Information About OceanGPT-coder-0.6B huggingface.co Model

More OceanGPT-coder-0.6B license Visit here:

https://choosealicense.com/licenses/mit

OceanGPT-coder-0.6B huggingface.co

OceanGPT-coder-0.6B huggingface.co is an AI model on huggingface.co that provides OceanGPT-coder-0.6B's model effect (), which can be used instantly with this zjunlp OceanGPT-coder-0.6B model. huggingface.co supports a free trial of the OceanGPT-coder-0.6B model, and also provides paid use of the OceanGPT-coder-0.6B. Support call OceanGPT-coder-0.6B model through api, including Node.js, Python, http.

OceanGPT-coder-0.6B huggingface.co Url

https://huggingface.co/zjunlp/OceanGPT-coder-0.6B

zjunlp OceanGPT-coder-0.6B online free

OceanGPT-coder-0.6B huggingface.co is an online trial and call api platform, which integrates OceanGPT-coder-0.6B's modeling effects, including api services, and provides a free online trial of OceanGPT-coder-0.6B, you can try OceanGPT-coder-0.6B online for free by clicking the link below.

zjunlp OceanGPT-coder-0.6B online free url in huggingface.co:

https://huggingface.co/zjunlp/OceanGPT-coder-0.6B

OceanGPT-coder-0.6B install

OceanGPT-coder-0.6B is an open source model from GitHub that offers a free installation service, and any user can find OceanGPT-coder-0.6B on GitHub to install. At the same time, huggingface.co provides the effect of OceanGPT-coder-0.6B install, users can directly use OceanGPT-coder-0.6B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

OceanGPT-coder-0.6B install url in huggingface.co:

https://huggingface.co/zjunlp/OceanGPT-coder-0.6B

Url of OceanGPT-coder-0.6B

OceanGPT-coder-0.6B huggingface.co Url

Provider of OceanGPT-coder-0.6B huggingface.co

zjunlp
ORGANIZATIONS

Other API from zjunlp

huggingface.co

Total runs: 1.1K
Run Growth: 363
Growth Rate: 33.21%
Updated:March 04 2024
huggingface.co

Total runs: 589
Run Growth: -601
Growth Rate: -102.04%
Updated:March 04 2024
huggingface.co

Total runs: 36
Run Growth: -50
Growth Rate: -138.89%
Updated:May 06 2024
huggingface.co

Total runs: 16
Run Growth: -14
Growth Rate: -87.50%
Updated:March 21 2023
huggingface.co

Total runs: 11
Run Growth: 0
Growth Rate: 0.00%
Updated:October 01 2025
huggingface.co

Total runs: 10
Run Growth: 3
Growth Rate: 30.00%
Updated:October 01 2025
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:July 28 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 22 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 07 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 09 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 10 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 17 2023