Vanessasml commited on
Commit
16e162f
1 Parent(s): 2c38bbb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -54,7 +54,7 @@ Here is how to load and use the model:
54
  ```python
55
  from transformers import AutoModelForCausalLM, AutoTokenizer
56
 
57
- model_name = "llama-2-7b-sft-lora-4bit-float16"
58
  tokenizer = AutoTokenizer.from_pretrained(model_name)
59
  model = AutoModelForCausalLM.from_pretrained(model_name)
60
 
@@ -66,7 +66,7 @@ The insurer polled over 1000 adults over the age of 45 in the latest update to i
66
  Further, 6% said they had actually fallen victim to such an online attack, amounting to around 1.2 million adults. \
67
  Some 22% more people it surveyed had been targeted by ...
68
  """
69
- pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=2000)
70
  # To generate text:
71
  result = pipe(f"<s>[INST] {prompt} [/INST]")
72
  print(result[0]['generated_text'])
 
54
  ```python
55
  from transformers import AutoModelForCausalLM, AutoTokenizer
56
 
57
+ model_name = "Vanessasml/cyber-risk-llama-2-7b"
58
  tokenizer = AutoTokenizer.from_pretrained(model_name)
59
  model = AutoModelForCausalLM.from_pretrained(model_name)
60
 
 
66
  Further, 6% said they had actually fallen victim to such an online attack, amounting to around 1.2 million adults. \
67
  Some 22% more people it surveyed had been targeted by ...
68
  """
69
+ pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=200)
70
  # To generate text:
71
  result = pipe(f"<s>[INST] {prompt} [/INST]")
72
  print(result[0]['generated_text'])