forked from analytics-zoo/bloomz.cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbenchmark.sh
15 lines (13 loc) · 10 KB
/
benchmark.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
make -j && numactl -C 0-47 -m 0 ./main -m /root/yishuo/ggml-models/bloomz-176b/ggml-bloomz-q4_0-qk64.bin \
-p "Once upon a time, there existed a little girl who liked to have adventures. She wanted to go to places and meet new people, and have fun"\
-n 32 \
-t 48
make -j && numactl -C 0-47 -m 0 ./main -m /root/yishuo/ggml-models/bloomz-176b/ggml-bloomz-q4_0-qk64.bin \
-p 'The new CEO sat on the edge of his desk and stared into the middle distance. The other executives had already left. Only he, his secretary and two security guards remained. Above them hung a black velvet curtain embroidered with silver threads. A shining diamond of light from a single window in the far wall was reflected by this curtain, sending out dazzling rays as it swept across the floor. The CEO stared at this scene for some time before he spoke: “This is my new office.” The secretary looked up from his typing and glanced around the room to confirm that he did indeed mean it. She then smiled in anticipation of the things she would do here when her boss was not present. The two security guards stood together at attention by the door, awaiting instructions. They had been hired for their appearance as much as for their skills. “I am very proud to have you all working with me,” said the CEO, “and I look forward to our time spent here.” He paused for a moment before continuing: “Before we start on our mission of world domination, though, we need to decide what we are going' \
-n 256 \
-t 48
# will segmentation fault
# make -j && numactl -C 0-47 -m 0 ./main -m /root/yishuo/ggml-models/bloomz-176b/ggml-bloomz-q4_0-qk64.bin \
# -p '“You’re an idiot,” she said. I smiled and leaned back in the chair, looking at her over my glasses. “No, I’m not.” “If you were smart you would have learned to dance years ago. You’ve got two left feet.” She held up both of her hands with four fingers extended then made a circular motion that looked like an airplane. I leaned forward and put my glasses on the table in front of me, reaching for her hands as I did so, grabbing them before they could leave mine. “The next time you do something like this, call me. The phone number is right here,” I said as I pointed at a piece of paper under a stack of papers on my desk. “Fine,” she huffed and turned to leave the room. But she stopped at the doorway when she saw the bookshelves that lined one wall. “What are these for?” She stepped closer, tilting her head back and forth as she looked up. The shelves were three stories high with stacks of books on every level. “Books.” I smiled again. “I have a lot of books.” She didn’t respond to that so I continued: “And there are more in the basement.” “But you can’t move them all here, right? This place is just too small for all those books. Maybe we should look for a bigger office building.” She looked back at me but said nothing as she took another few steps towards the door and then stopped again when she saw my grandfather clock on the wall. “And this?” she pointed to the clock, which had been in the family for over seventy years. “It’s just a clock isn’t it?” I laughed. “You can say that, but I know better.” It was then that I told her my grandfather’s story. He made that clock, and it was his favorite possession. When he died she inherited the clock; or at least she thought she did. After a few weeks of trying to sell it on eBay, she gave up because no one would pay what she felt it was worth. “You should have had an auction,” she suggested, leaning in towards me again. “Then maybe you could get more for it.” “No,” I shook my head. “I don’t want to sell the clock.” She smiled, but this time it didn’t reach her eyes. She took a step back and looked at me again, not saying anything, just staring. The only sound was the ticking of the grandfather clock in the background as she waited for my next words. “My grandfather made this clock. He did everything by hand.” I could see that she had no idea what to say or do so I continued: “It’s his favorite possession, and it means more to me than anything else he ever owned. So, if you want the books, you can have them…” I looked at her face for just a second before continuing, “but you won’t take the clock.” She finally responded with: “But what about the money?” She looked around again and said, “I think we could make more selling these books than you would get from all of them. You must have thousands of books here!” I took another step forward and put my hand on her shoulder as I spoke to her in a very low voice. “You’ve got it all wrong,” I told her. “There are only two or three hundred books. I’m not looking for money – I’m looking for someone who understands how important this clock is.” “How much do you want for the books?” she asked, still staring at me intently as she waited for my answer. “Forget about the money,” I said again. “If you really want to buy them, we can take our time and talk more later. But if you just want their value in paperbacks, that’s not what they’re worth.” She still seemed confused by everything I had said so far, so I tried to simplify my words as much as possible: “The books are mine; the clock is my grandfather’s. These books have been passed down through several generations of our family and are irreplaceable. Do you understand?” “I guess not,” she answered as she walked away from me, still looking at me but not saying a word. She took two more steps before turning around to say one last thing: “Well, good luck with the books, then.” With that, she went back into her house and out of sight, still walking without talking. After a few minutes, I slowly walked back toward my grandfather’s home. As I got closer, I could see the roof in the distance; the white crosses on the top of it were hard to miss. It seemed as if the entire town had gathered around there at that moment – people were all over the road around us, watching the commotion and chattering about what was going on. When my grandfather first saw me, he looked up from his chair with a smile on his face: “There you are.” He looked down at his hands, then back toward me as I walked forward to talk to him for the first time in years: “It’s been too long since we last spoke; it’s good to see you again.” “And you,” I said. Then, looking past my grandfather and directly into the face of the man who was sitting next to him (my mother’s father), I said, “I see he got your clock back for you, too. How is he?” My grandfather smiled as he looked up at me again: “He’s fine,” he answered, still smiling as he watched my mother’s family and mine chat with one another in the middle of all these people – a situation that I had never seen before. “Come on inside.” He stood up from his chair to do just that; my mom and her sister were already walking out of the building. “I have things for you.” My grandfather led us inside, down some steps where he used to serve as the pastor in his church; there was a big room full of chairs at the bottom with pictures on the wall – all kinds of pictures, from when my family first started coming here to visit and other pictures we took while staying here over the years. All these photographs were all around us as I followed my grandfather through the building: “My house is just up the street,” he said. He stopped at a picture on the wall that was taken in the summer when we came to visit, smiling as he looked toward it with his arms folded – the picture was of him and his wife and two of their daughters, all standing together by one of the trees outside; there were other pictures around this one, some from much earlier than when my grandfather first started serving here. “We used to sit in a booth in that restaurant right over there – you remember?” I nodded as we went past it. My grandfather stopped at another picture on the wall: it was of him and his wife with two other families, all sitting around a table together, smiling. He looked down at this one for a moment; then he said, “We used to do things like this every year, when we came to visit.” It was an older picture than the last one my grandfather had stopped in front of; I didn’t know it before but now I realized how much he has aged. My grandparents have lived together for many years. They used to live in a house right next door, so they could walk over whenever they wanted; that is what they have done here all these years – as my grandfather said, “we’ve come here every summer since I was eleven.” But he and his wife are getting old now. He isn’t able to walk much anymore, but it makes him happy when he does: “My health has not been good lately,” he said. “You will never have a better time in your life than this one right now; you will never be as happy as you are now.” And for the first time since I have known him – since I was very little and started coming here every summer – my grandfather smiled at me, his eyes sparkling with excitement. “I know,” I said. “That’s why I’m really looking forward to it. It will be a lot of fun.” Then he turned back to the picture again; “See this?” he asked, pointing. “I remember that day, all sixteen of us there together. I was eleven then – my dad had taken me and my brother for our first trip away from home – and that was when we used to go to the cottage.” He stared at it for a while longer; he had tears in his eyes. “I loved this picture,” he said, turning it over again with one hand so I could see the back of it. “This is my best memory,” he explained. “It was taken on my birthday. That’s what makes me happiest.” He pointed to a man who had a pipe in his mouth. “That’s my uncle,” he said. “He gave all of us kids cigars for our birthdays, and we used to take turns lighting them – then everyone would sit around outside in the sunshine and smoke together like that. It was such a good time.” Then he held up his hand, as if to say, that’s enough now; and he went on, “Anyway, I don’' \
# -n 256 \
# -t 48