zhihan1996 commited on
Commit
6ba2d64
·
verified ·
1 Parent(s): 93f8bd5

Upload 2 files

Browse files
Files changed (2) hide show
  1. LICENSE +35 -0
  2. README.md +34 -0
LICENSE ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # License Agreement
2
+
3
+ Python STXM Control (pystxmcontrol) Copyright (c) 2025, The Regents of the
4
+ University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy), and Northwestern University. All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ (1) Redistributions of source code must retain the above copyright notice,
10
+ this list of conditions and the following disclaimer.
11
+
12
+ (2) Redistributions in binary form must reproduce the above copyright
13
+ notice, this list of conditions and the following disclaimer in the
14
+ documentation and/or other materials provided with the distribution.
15
+
16
+ (3) Neither the name of the University of California, Lawrence Berkeley
17
+ National Laboratory, U.S. Dept. of Energy nor the names of its contributors
18
+ may be used to endorse or promote products derived from this software
19
+ without specific prior written permission.
20
+
21
+
22
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
+
26
+ You are under no obligation whatsoever to provide any bug fixes, patches,
27
+ or upgrades to the features, functionality or performance of the source
28
+ code ("Enhancements") to anyone; however, if you choose to make your
29
+ Enhancements available either publicly, or directly to Lawrence Berkeley
30
+ National Laboratory, without imposing a separate written license agreement
31
+ for such Enhancements, then you hereby grant the following license: a
32
+ non-exclusive, royalty-free perpetual license to install, use, modify,
33
+ prepare derivative works, incorporate into other computer software,
34
+ distribute, and sublicense such enhancements or derivative works thereof,
35
+ in binary and source code form.
README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: bsd
3
+ ---
4
+
5
+ This is GenomeOcean-bgcFM, a model finetuned on biosynthetic gene clusters (BGC) sequences. It is built on GenomeOcean-4B. It is trained with Causal Language Modeling (CLM) and uses a BPE tokenizer with 4096 tokens. It supports a maximum sequence length of 10240 tokens (~50kbp).
6
+
7
+ Please see our official implementation on our [Github](https://github.com/jgi-genomeocean/genomeocean).
8
+
9
+ Quick start.
10
+
11
+ ```
12
+ import torch
13
+ from transformers import AutoModelForCausalLM, AutoTokenizer
14
+
15
+ tokenizer = AutoTokenizer.from_pretrained(
16
+ "pGenomeOcean/GenomeOcean-4B-bgcFM",
17
+ trust_remote_code=True,
18
+ padding_side="left",
19
+ )
20
+ model = AutoModelForCausalLM.from_pretrained(
21
+ "pGenomeOcean/GenomeOcean-4B-bgcFM",
22
+ trust_remote_code=True,
23
+ torch_dtype=torch.bfloat16,
24
+ attn_implementation="flash_attention_2",
25
+ ).to("cuda")
26
+ ```
27
+
28
+
29
+ Copyright Notice
30
+ genomeocean: a pretrained microbial genome foundational model (genomeoceanLLM) ” Copyright (c) 2025, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy) and Northwestern University. All rights reserved.
31
+
32
+ If you have questions about your rights to use or distribute this software, please contact Berkeley Lab's Intellectual Property Office at [email protected].
33
+
34
+ NOTICE. This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit others to do so.