emozilla commited on
Commit
91cd3ee
1 Parent(s): 563ffa0

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +51 -0
README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - emozilla/booksum-summary-analysis_llama-8192
5
+ - kmfoda/booksum
6
+ ---
7
+
8
+ GGML version of [emozilla/LLongMA-2-7b-storysummarizer](https://huggingface.co/emozilla/LLongMA-2-7b-storysummarizer). Use `n_ctx=8192` and `rope_freq_scale=0.5`. For an excellent user interface, check out [LM Studio](https://lmstudio.ai/).
9
+
10
+ # LLongMA-2-7b-storysummarizer
11
+ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
12
+ This is a fine-tuned version of [conceptofmind/LLongMA-2-7b](https://huggingface.co/conceptofmind/LLongMA-2-7b) intended for summarization and literary analysis of fiction stories.
13
+ It contains custom modeling code to use Flash Attention 2 during inference, which provides a significant speedup, especially at longer context lengths.
14
+ To enable, pass `trust_remote_code=True,use_flash_attention=True` to `AutoModelForCausalLM`.
15
+
16
+ ## How to Use
17
+
18
+ ```
19
+ SOME_FICTION
20
+
21
+ ### SUMMARY:
22
+ ```
23
+
24
+ or
25
+
26
+ ```
27
+ SOME_FICTION
28
+
29
+ ### ANALYSIS:
30
+ ```
31
+
32
+ ## Example outputs
33
+
34
+ Outputs on the text of [_Waystation City_](https://www.uncannymagazine.com/article/waystation-city/) (6,904 tokens)
35
+
36
+ ### Summary
37
+
38
+ `temperature=0.8`, `repetition_penalty=1.1`,`do_sample=True`
39
+
40
+ > A nineteen-seventies pair of twins approaches Micheala and Gerty at a cafe. They ask them to write down their story of their disappearance. Gerty takes notes on their story as they tell it. The twins' names are Daphne and Claude. The twins explain that they came from London, England and were leading a movement against fascism there. But in Waystation City, they were stuck in the limbo between timelines with no real way of returning home to continue their work. In fact, it was harder for them to remember their lives at home as time went on. They tell Gerty that they cannot stay and Micheala encourages them not to go down to the stairs where Waystation City's ferry drivers will take them home. Daphne writes an inscription on a wall, leaving her mark as one of the disappeared, but she and Claude relent. Together they approach the docks with Gerty and Micheala trailing behind. There, the twins discuss which hole to go through and they agree it is the one showing their hometown in the 1970s. Daphne goes first and then Claude after he slips on a wet surface. The ferry drivers see him but Gerty yells for him to return from the hole as she writes his story down with her notes. But he cannot hear her over the slip of metal slats turning into stone and wood on the docks. He jumps in anyway and disappears into the other world through the hole. Micheala leaves a cigarette and Gerty drops her ticket back home to show that she's decided to stay in Waystation City where it is possible to grow, change, and live in the spaces between.
41
+
42
+ ### Analysis
43
+
44
+ `temperature=0.8`, `repetition_penalty=1.1`,`do_sample=True`
45
+
46
+ > Notes In this final chapter, there is a brief but important flashback to the twins' home in England at the beginning of the 1970s, when racism and fascism are rampant. It is interesting to note the author's choice to set the story at such a pivotal time for immigrants in Britain. The twins feel like they have to choose between being their "true" selves in their home country or staying where they are as Waystation citizens. But this was also the time when racism and fascism were so openly practiced that anti-racists were fighting against these institutions with all of their might. It is interesting how there's an implication here that it's only at the risk of their "true" identities that the twins can go back to England. In this chapter, Gerty changes her name as well, choosing the gender neutral Michael. She does not specify why she decided to change her name or what inspired her choice. The story implies, but never says outright, that she changed her name in part because of the twins' disappearance. This suggests an important question: how far must a person be willing to go in order to stay true to themselves? It is clear by this point that Gerty has changed quite a bit since coming to Waystation City and her decision to change her name reflects the extent to which she has altered her identity. She realizes that she has settled into a comfortable, new life here with new clothes, new hobbies, and friends. Ultimately, this chapter suggests that while it is important to stay true to one's past, there are also new things to discover and experience in the present. Gerty has done just this by settling in Waystation City, embracing her new life and even changing her name and identity with it.
47
+
48
+ ## Training
49
+
50
+ The model was trained on [emozilla/booksum-summary-analysis_llama-8192](https://huggingface.co/datasets/emozilla/booksum-summary-analysis_llama-8192), which is adapted from [kmfoda/booksum](https://huggingface.co/datasets/kmfoda/booksum).
51
+ The training run was performed using [axolotl](https://github.com/OpenAccess-AI-Collective/axolotl). The run can be viewed on [wandb](https://wandb.ai/emozilla/booksum/runs/gh0vrilm).