Update model card namespace references

#1
by lewtun HF Staff - opened
Files changed (1) hide show
  1. README.md +8 -8
README.md CHANGED
@@ -14,9 +14,9 @@ tags:
14
 
15
  A small generative DNA model from the **Carbon** family.
16
 
17
- **Carbon-500M is intended primarily as a draft model for speculative decoding** — it shares the tokenizer and DNA template format of [Carbon-3B](https://huggingface.co/hf-carbon/Carbon-3B) and [Carbon-8B](https://huggingface.co/hf-carbon/Carbon-8B), so it can be paired with either as the target model to reduce wall-clock generation cost at no quality loss. It is not designed to be competitive with the 3B/8B Carbon models on downstream benchmarks.
18
 
19
- For the full design rationale, tokenizer specification, evaluation protocol, and usage notes (DNA tag wrapping, 6-mer constraints, scoring helpers), please refer to the **[Carbon-3B model card](https://huggingface.co/hf-carbon/Carbon-3B)** — this card focuses only on facts specific to Carbon-500M.
20
 
21
  > TODO: update teh tokenizer code
22
 
@@ -34,13 +34,13 @@ For the full design rationale, tokenizer specification, evaluation protocol, and
34
 
35
  ## How to use
36
 
37
- Wrap DNA in `<dna>...</dna>` exactly as for the larger models. See the [Carbon-3B card](https://huggingface.co/hf-carbon/Carbon-3B#tokenizer-working-with-dna-inputs) for tokenizer details.
38
 
39
  ```python
40
  from transformers import AutoModelForCausalLM, AutoTokenizer
41
  import torch
42
 
43
- repo = "hf-carbon/Carbon-500M"
44
  tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
45
  model = AutoModelForCausalLM.from_pretrained(
46
  repo, torch_dtype=torch.bfloat16,
@@ -60,12 +60,12 @@ Carbon-500M is most useful when paired with a larger Carbon model as the verifie
60
  from transformers import AutoModelForCausalLM, AutoTokenizer
61
  import torch
62
 
63
- tok = AutoTokenizer.from_pretrained("hf-carbon/Carbon-3B", trust_remote_code=True)
64
  draft = AutoModelForCausalLM.from_pretrained(
65
- "hf-carbon/Carbon-500M", torch_dtype=torch.bfloat16
66
  ).cuda().eval()
67
  target = AutoModelForCausalLM.from_pretrained(
68
- "hf-carbon/Carbon-3B", torch_dtype=torch.bfloat16
69
  ).cuda().eval()
70
 
71
  prompt = "<dna>ATGCGCTAGCTACGATCGATCGTAGCTAGCTAGCTAGCTACG"
@@ -81,7 +81,7 @@ Output is guaranteed identical to greedy decoding with the target model alone; o
81
 
82
  ## Evaluation
83
 
84
- Carbon-500M is benchmarked against ≈ 1B-parameter DNA models on the standard Carbon evaluation suite. See the [Carbon-3B card](https://huggingface.co/hf-carbon/Carbon-3B#evaluation) for the task definitions and methodology.
85
 
86
  > TODO Loubna: add one downstream table comparing Carbon-500M to other 1B-class baselines. -->
87
 
 
14
 
15
  A small generative DNA model from the **Carbon** family.
16
 
17
+ **Carbon-500M is intended primarily as a draft model for speculative decoding** — it shares the tokenizer and DNA template format of [Carbon-3B](https://huggingface.co/HuggingFaceBio/Carbon-3B) and [Carbon-8B](https://huggingface.co/HuggingFaceBio/Carbon-8B), so it can be paired with either as the target model to reduce wall-clock generation cost at no quality loss. It is not designed to be competitive with the 3B/8B Carbon models on downstream benchmarks.
18
 
19
+ For the full design rationale, tokenizer specification, evaluation protocol, and usage notes (DNA tag wrapping, 6-mer constraints, scoring helpers), please refer to the **[Carbon-3B model card](https://huggingface.co/HuggingFaceBio/Carbon-3B)** — this card focuses only on facts specific to Carbon-500M.
20
 
21
  > TODO: update teh tokenizer code
22
 
 
34
 
35
  ## How to use
36
 
37
+ Wrap DNA in `<dna>...</dna>` exactly as for the larger models. See the [Carbon-3B card](https://huggingface.co/HuggingFaceBio/Carbon-3B#tokenizer-working-with-dna-inputs) for tokenizer details.
38
 
39
  ```python
40
  from transformers import AutoModelForCausalLM, AutoTokenizer
41
  import torch
42
 
43
+ repo = "HuggingFaceBio/Carbon-500M"
44
  tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
45
  model = AutoModelForCausalLM.from_pretrained(
46
  repo, torch_dtype=torch.bfloat16,
 
60
  from transformers import AutoModelForCausalLM, AutoTokenizer
61
  import torch
62
 
63
+ tok = AutoTokenizer.from_pretrained("HuggingFaceBio/Carbon-3B", trust_remote_code=True)
64
  draft = AutoModelForCausalLM.from_pretrained(
65
+ "HuggingFaceBio/Carbon-500M", torch_dtype=torch.bfloat16
66
  ).cuda().eval()
67
  target = AutoModelForCausalLM.from_pretrained(
68
+ "HuggingFaceBio/Carbon-3B", torch_dtype=torch.bfloat16
69
  ).cuda().eval()
70
 
71
  prompt = "<dna>ATGCGCTAGCTACGATCGATCGTAGCTAGCTAGCTAGCTACG"
 
81
 
82
  ## Evaluation
83
 
84
+ Carbon-500M is benchmarked against ≈ 1B-parameter DNA models on the standard Carbon evaluation suite. See the [Carbon-3B card](https://huggingface.co/HuggingFaceBio/Carbon-3B#evaluation) for the task definitions and methodology.
85
 
86
  > TODO Loubna: add one downstream table comparing Carbon-500M to other 1B-class baselines. -->
87