edbeeching HF staff commited on
Commit
ea4eff1
β€’
1 Parent(s): 80ac3c2

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +4 -4
utils.py CHANGED
@@ -27,21 +27,21 @@ def make_clickable_model(model_name):
27
  LLAMAS = ["huggingface/llama-7b", "huggingface/llama-13b", "huggingface/llama-30b", "huggingface/llama-65b"]
28
  if model_name in LLAMAS:
29
  model = model_name.split("/")[1]
30
- return f'<a target="_blank" href="https://ai.facebook.com/blog/large-language-model-llama-meta-ai/" style="color: blue; text-decoration: underline;text-decoration-style: dotted;">{model}</a>'
31
 
32
  if model_name == "HuggingFaceH4/stable-vicuna-13b-2904":
33
  link = "https://huggingface.co/" + "CarperAI/stable-vicuna-13b-delta"
34
- return f'<a target="_blank" href="{link}" style="color: blue; text-decoration: underline;text-decoration-style: dotted;">stable-vicuna-13b</a>'
35
 
36
  if model_name == "HuggingFaceH4/llama-7b-ift-alpaca":
37
  link = "https://crfm.stanford.edu/2023/03/13/alpaca.html"
38
- return f'<a target="_blank" href="{link}" style="color: blue; text-decoration: underline;text-decoration-style: dotted;">alpaca-13b</a>'
39
 
40
  # remove user from model name
41
  #model_name_show = ' '.join(model_name.split('/')[1:])
42
 
43
  link = "https://huggingface.co/" + model_name
44
- return f'<a target="_blank" href="{link}" style="color: blue; text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
45
 
46
  @dataclass
47
  class EvalResult:
 
27
  LLAMAS = ["huggingface/llama-7b", "huggingface/llama-13b", "huggingface/llama-30b", "huggingface/llama-65b"]
28
  if model_name in LLAMAS:
29
  model = model_name.split("/")[1]
30
+ return f'<a target="_blank" href="https://ai.facebook.com/blog/large-language-model-llama-meta-ai/" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model}</a>'
31
 
32
  if model_name == "HuggingFaceH4/stable-vicuna-13b-2904":
33
  link = "https://huggingface.co/" + "CarperAI/stable-vicuna-13b-delta"
34
+ return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">stable-vicuna-13b</a>'
35
 
36
  if model_name == "HuggingFaceH4/llama-7b-ift-alpaca":
37
  link = "https://crfm.stanford.edu/2023/03/13/alpaca.html"
38
+ return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">alpaca-13b</a>'
39
 
40
  # remove user from model name
41
  #model_name_show = ' '.join(model_name.split('/')[1:])
42
 
43
  link = "https://huggingface.co/" + model_name
44
+ return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
45
 
46
  @dataclass
47
  class EvalResult: